to show chinese character properly

yf fyou at dsguardian.com
Sat Nov 16 03:00:53 CST 2002


--- wine-20021031/graphics/x11drv/codepage.c.original    2002-11-16 
13:50:31.000000000 +0800
+++ wine-20021031/graphics/x11drv/codepage.c    2002-11-04 
17:44:14.000000000 +0800
@@ -279,8 +279,8 @@
     {
     if ( IsLegalDBCSChar_cp936( *str_src, *(str_src+1) ) )
     {
-        str2b_dst->byte1 = *str_src;
-        str2b_dst->byte2 = *(str_src+1);
+        str2b_dst->byte1 = *str_src&0x7f;
+        str2b_dst->byte2 = *(str_src+1)&0x7f;
         str_src++;
     }
     else




More information about the wine-patches mailing list