Microsoft CRT doesn't support Unicode properly for console applications.
Clever Code
22
Posts
6
Posters
4
Views
1
Watching
-
Stephen Hewitt wrote:
simple use WriteConsoleW function
It seems you can't redirect output done with WriteConsoleW.
Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
True, but it's easy enough to detect if the output handle (returned from the
GetStdHandle
API) is a console handle and to behave appropriately.Steve
-
Stephen Hewitt wrote:
simple use WriteConsoleW function
It seems you can't redirect output done with WriteConsoleW.
Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke