http://bugs.winehq.org/show_bug.cgi?id=33447
--- Comment #16 from Qian Hong fracting@gmail.com 2013-04-29 12:44:55 CDT --- Created attachment 44330 --> http://bugs.winehq.org/attachment.cgi?id=44330 Patch: partial fix
Hi Ken,
Thanks a lot for your great analysis. I found the multiple-Windows-locales-match issue is tricky, it seems there is no really better way rather than some hardcode work.
Rather than fix it completely right now, I'd like to send a partial fix first. I'm attaching a patch which fix the case when user language setting is matching with user region setting, but haven't fix the case when user language setting is not matching with user region setting. This patch use the CoreFoundation API CFLocaleCreateCanonicalLanguageIdentifierFromString which will automatically convert 'zh_CN/zh_SG' to 'zh-Hans', convert 'zh_HK/zh_TW/zh_MO' to 'zh-Hant'.
I appreciate for any comments on it, if you don't object to it I'll send it to wine-patch first, and leave this bug open until we have decide if hardcoding is the right way for completely fix this bug.
Thanks a lot!