Module: wine Branch: master Commit: bdc52c4777acece650528d344403890c0e6036f7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bdc52c4777acece650528d3444...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Wed Jan 10 15:27:13 2007 +0800
wineconsole: Use CP_UNIXCP to translate strings to the system encoding.
---
programs/wineconsole/curses.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/wineconsole/curses.c b/programs/wineconsole/curses.c index fcda4ec..14637b1 100644 --- a/programs/wineconsole/curses.c +++ b/programs/wineconsole/curses.c @@ -335,8 +335,8 @@ static void WCCURSES_SetTitle(const stru 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 struc 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;