Kirill K. Smirnov wrote:
WriteFile does not output unicode characters to console screen buffer, so if ConsoleOutputCP is smth like 65001, this will fail. The page http://msdn2.microsoft.com/en-us/library/ms687401.aspx contains remedy by Microsoft how to deal with problem:
- If device handle is console, then output wide chars using WriteConsoleW
- If device handle is not console, then convert wide chars to ConsoleOutputCP
and output using WriteFileA.
Hmm. I shall work above these a question. Thank you for opinion.
This way is already implemented in cmd (See WCMD_output_asis_len function).
And it may be much better to convert start utility to unicode.
Yes, I agree with you.
-- Kirill
P.S. all this manipulations is supposed to be done by msvcrt printf function family, but wine lacks this functionality :-(