Re: Move console input/output codepages to server
20 Apr
2007
20 Apr
'07
3:56 a.m.
"Kirill K. Smirnov" <lich(a)math.spbu.ru> wrote:
@@ -141,12 +138,19 @@ HWND WINAPI GetConsoleWindow(VOID) */ UINT WINAPI GetConsoleCP(VOID) { - if (!console_input_codepage) + BOOL ret; + UINT codepage = GetOEMCP(); /* default value */ + + SERVER_START_REQ(get_console_input_info) { - console_input_codepage = GetOEMCP(); - TRACE("%u\n", console_input_codepage); + req->handle = 0; + ret = !wine_server_call_err( req ); + if (ret && reply->codepage) + codepage = reply->codepage;
Did you test what happens when an app sets console code page to a pseudo cp like CP_ACP (0)? Your code will force code page to be always equal to what GetOEMCP returns in that case. -- Dmitry.
6902
Age (days ago)
6902
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov