something about Chinese character processing

yf fyou at dsguardian.com
Fri Nov 15 23:57:07 CST 2002


I found that to show Chinese character properly, following should be
modified. But it only affect menu, the character within the windows
still as before ( can't be showed properly). What should I do then?

--- 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-devel mailing list