Some more Unicode fixes. What does wxTextStream do with

a char in Unicode mode?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-11-03 15:48:13 +00:00
parent c60cc91708
commit fc6f3208b2
3 changed files with 7 additions and 11 deletions

View File

@@ -493,12 +493,8 @@ wxTextOutputStream& wxTextOutputStream::operator<<(const wxString& string)
wxTextOutputStream& wxTextOutputStream::operator<<(char c)
{
// these strange manipulations are needed in Unicode mode
char buf[2];
buf[0] = c;
buf[1] = 0;
WriteString( wxString(buf) );
WriteString( wxString::FromAscii(c) );
return *this;
}