something with Chinese character processing
yf
fyou at dsguardian.com
Fri Nov 15 05:19:33 CST 2002
I found that to show Chinese character properly. Following should be
modified:
in wine-2002????/graphics/x11drv/codepage.c
static Xchar2b *X11DRV_unicode_to_char2b_cp936(fontObject *pfo,
LPCWSTR lpwstr, UINT count)
{
...
for(i=0; i<count; i++, str_src++, str2b_dsg++)
{
if(IsLegalDBCSChar_cp936(*str_src, *(str_src+1)))
{
// modified begin ===>
str2b_dst->byte1=*str_src&0x7f;
str2b_dst->byte2=*(str_src+1)&0x7f;
str_src++;
// <=== modified end
}
else
...
}
...
}
But there still some character can't be properly showed. Where I lost
should be modified, please tell me.
Best regards.
/yf
More information about the wine-devel
mailing list