http://bugs.winehq.org/show_bug.cgi?id=16325
--- Comment #5 from Xiangrong Fang xrfang@gmail.com 2008-12-04 08:27:00 --- (In reply to comment #4)
Could you please post a link to a chinese program that requests an ANSI_CHARSET character set and works in Windows (optimal would be a small freeware tool)? If I understand the stuff correctly, ANSI_CHARSET means codepage 1252, and if Chinese characters should be output, DEFAULT_CHARSET or something like GB2312_CHARSET would be needed. And if a program explicitly requests to get the western codepage, Wine *seems* to be right about providing the western codepage.
Here is an example:
http://wizard.stock.hexun.com/webtornado/download/SetupGold.exe
The program is a stock charting application. Note that in *most* places it displays text correctly, only a few places have problems. Some guy in Chinese community (I think it is who submitted the hack for bug #4605) found that it is related to ANSI_CHARSET.
From some sources I learned that ANSI_CHARSET should not mean codepage 1252, it
should mean the current non-unicode codepage, i.e. in an English windows it means 1252, but in a Chinese windows it should mean 936, in another word, I think GetACP() is a suitable replacement.
Please let me know if you need help inspecting Chinese programs or you need more samples.
Thank you! Xiangrong