Re: [PATCH] [cmd]: use correct codepage when outputing unicode text to an ANSI stream

2008-05-13 Thread Kirill K. Smirnov
>> 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

Re: [PATCH] [cmd]: use correct codepage when outputing unicode text to an ANSI stream

2008-05-13 Thread Eric Pouech
Vitaliy Margolen a écrit : > Eric Pouech wrote: > >> @@ -1437,7 +1437,7 @@ static void WCMD_output_asis_len(const WCHAR *message, >> int len, HANDLE device) { >> } >> >> /* Convert to OEM, then output */ >> -convertedChars = WideCharToMultiByte(GetConsoleOutputCP(),

Re: [PATCH] [cmd]: use correct codepage when outputing unicode text to an ANSI stream

2008-05-13 Thread Vitaliy Margolen
Eric Pouech wrote: > @@ -1437,7 +1437,7 @@ static void WCMD_output_asis_len(const WCHAR *message, > int len, HANDLE device) { > } > > /* Convert to OEM, then output */ > -convertedChars = WideCharToMultiByte(GetConsoleOutputCP(), 0, > message, > +convertedChars