Alex Henrie : kernel32: Output message to stderr in current Unix codepage.

Alexandre Julliard julliard at winehq.org
Wed Oct 26 12:35:47 CDT 2011


Module: wine
Branch: master
Commit: 3aff781f63fd7d61e6f42898dc88ef1eaaed9527
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3aff781f63fd7d61e6f42898dc88ef1eaaed9527

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Tue Oct 25 16:16:21 2011 -0600

kernel32: Output message to stderr in current Unix codepage.

Fixes a bug in which the command "wine /." outputs a garbled error message in languages other than English.
Supersedes "kernel32: Output message to stderr in UTF-8"

---

 dlls/kernel32/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 6d42696..b6c0b9d 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -1252,7 +1252,7 @@ void CDECL __wine_kernel_init(void)
         args[0] = (DWORD_PTR)main_exe_name;
         FormatMessageW( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ARGUMENT_ARRAY,
                         NULL, error, 0, msgW, sizeof(msgW)/sizeof(WCHAR), (__ms_va_list *)args );
-        WideCharToMultiByte( CP_ACP, 0, msgW, -1, msg, sizeof(msg), NULL, NULL );
+        WideCharToMultiByte( CP_UNIXCP, 0, msgW, -1, msg, sizeof(msg), NULL, NULL );
         MESSAGE( "wine: %s", msg );
         ExitProcess( error );
     }




More information about the wine-cvs mailing list