From bdc52c4777acece650528d344403890c0e6036f7 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 10 Jan 2007 15:27:13 +0800 Subject: [PATCH] wineconsole: Use CP_UNIXCP to translate strings to the system encoding. --- programs/wineconsole/curses.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/wineconsole/curses.c b/programs/wineconsole/curses.c index fcda4ec7001..14637b11bf3 100644 --- a/programs/wineconsole/curses.c +++ b/programs/wineconsole/curses.c @@ -335,8 +335,8 @@ static void WCCURSES_SetTitle(const struct inner_data* data) if (WINECON_GetConsoleTitle(data->hConIn, wbuf, sizeof(wbuf)/sizeof(WCHAR))) { char buffer[256]; - - WideCharToMultiByte(CP_ACP, 0, wbuf, -1, buffer, sizeof(buffer), + + WideCharToMultiByte(CP_UNIXCP, 0, wbuf, -1, buffer, sizeof(buffer), NULL, NULL); fputs("\033]2;", stdout); fputs(buffer, stdout); @@ -363,7 +363,7 @@ static void WCCURSES_Refresh(const struct inner_data* data, int tp, int bm) cell = &data->cells[y * data->curcfg.sb_width]; for (x = 0; x < data->curcfg.sb_width; x++) { - WideCharToMultiByte(CP_ACP, 0, &cell[x].Char.UnicodeChar, 1, + WideCharToMultiByte(CP_UNIXCP, 0, &cell[x].Char.UnicodeChar, 1, &ch, 1, NULL, NULL); attr = ((BYTE)ch < 32 || (BYTE)ch > 127) ? 32 : (BYTE)ch;