attrib: Use CP_ACP for non-console output encoding.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
73756156f4
commit
62c961afdf
|
@ -104,7 +104,7 @@ static int WINAPIV ATTRIB_wprintf(const WCHAR *format, ...)
|
|||
}
|
||||
|
||||
/* Convert to OEM, then output */
|
||||
convertedChars = WideCharToMultiByte(GetConsoleOutputCP(), 0, output_bufW,
|
||||
convertedChars = WideCharToMultiByte(CP_ACP, 0, output_bufW,
|
||||
len, output_bufA, MAX_WRITECONSOLE_SIZE,
|
||||
"?", &usedDefaultChar);
|
||||
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), output_bufA, convertedChars,
|
||||
|
|
Loading…
Reference in New Issue