[PATCH] [cmd]: use correct codepage when outputing unicode text to an ANSI stream
Kirill K. Smirnov
lich at math.spbu.ru
Tue May 13 15:28:16 CDT 2008
>> This doesn't look right. What if it's wineconsole with user backend
>> (default) and OEM CP (which is different then UNIXCP)? Should probably hack
>> GetConsoleOutputCP() instead.
>this code is only used when no wineconsole is attached, so unixcp is the
No, this is used in case of output redirection too.
E.g. even in wineconsole, command
c:>dir > list.txt
will create a list.txt file in UNIXCP, but ConsoleOutputCP is expected. In
most cases it does not hurt, but who knows...
>however, it can be considered that GetConsoleOutputCP() should be
>changed to return the unixcp and not the oem cp when no console is attached
More information about the wine-devel