attrib: Use OEM code page for output.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a596da54f6
commit
8f06c1c641
|
@ -104,7 +104,7 @@ static int WINAPIV ATTRIB_wprintf(const WCHAR *format, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert to OEM, then output */
|
/* Convert to OEM, then output */
|
||||||
convertedChars = WideCharToMultiByte(CP_ACP, 0, output_bufW,
|
convertedChars = WideCharToMultiByte(GetOEMCP(), 0, output_bufW,
|
||||||
len, output_bufA, MAX_WRITECONSOLE_SIZE,
|
len, output_bufA, MAX_WRITECONSOLE_SIZE,
|
||||||
"?", &usedDefaultChar);
|
"?", &usedDefaultChar);
|
||||||
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), output_bufA, convertedChars,
|
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), output_bufA, convertedChars,
|
||||||
|
|
Loading…
Reference in New Issue