git-svn-id: svn://db.shs.com.ru/pip@909 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -312,9 +312,15 @@ PICout operator <<(PICout s, const PIChar & v) {
|
|||||||
s << v.toSystem();
|
s << v.toSystem();
|
||||||
//else
|
//else
|
||||||
// s << v.toConsole1Byte();
|
// s << v.toConsole1Byte();
|
||||||
#else
|
|
||||||
s << v.toCharPtr();
|
|
||||||
#endif
|
#endif
|
||||||
|
if (v.isAscii()) s << char(v.ch);
|
||||||
|
else {
|
||||||
|
char tc[8];
|
||||||
|
wctomb(0, 0);
|
||||||
|
int sz = wctomb(tc, v.ch);
|
||||||
|
for (int b = 0; b < sz; ++b)
|
||||||
|
s << tc[b];
|
||||||
|
}
|
||||||
s.restoreControl();
|
s.restoreControl();
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user