wineconsole: Use CP_UNIXCP to translate strings to the system encoding

Dmitry Timoshkov dmitry at codeweavers.com
Wed Jan 10 01:27:13 CST 2007


Hello,

Changelog:
    wineconsole: Use CP_UNIXCP to translate strings to the system encoding.

---
 programs/wineconsole/curses.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/wineconsole/curses.c b/programs/wineconsole/curses.c
index 692cec2..3dbbd09 100644
--- a/programs/wineconsole/curses.c
+++ b/programs/wineconsole/curses.c
@@ -336,7 +336,7 @@ static void	WCCURSES_SetTitle(const struct inner_data* data)
     {
         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;
 
-- 
1.4.4.4






More information about the wine-patches mailing list