Re: [PATCH] [cmd]: use correct codepage when outputing unicode text to an ANSI stream
13 May
2008
13 May
'08
8:28 p.m.
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 right choice 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
-- Kirill
6427
Age (days ago)
6427
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kirill K. Smirnov