[PATCH] kernel32: Handle zh-Hant and zh-Hans in LocaleNameToLCID.

Zhiyi Zhang yi.gd.cn at gmail.com
Sat Nov 11 10:11:19 CST 2017


I extended get_default_sublang() to work with LCIDs that have a script 
but no country.

I also made a change in parse_locale_name(), because <LANG>-<SCRIPTS> is 
also a valid locale name form.

Thanks to Alexandre for the suggestion.

Signed-off-by: Zhiyi Zhang <yi.gd.cn at gmail.com>
---
  dlls/kernel32/locale.c       | 34 ++++++++++++++++++++++++----------
  dlls/kernel32/tests/locale.c | 24 +++++++++++-------------
  2 files changed, 35 insertions(+), 23 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kernel32-Handle-zh-Hant-and-zh-Hans-in-LocaleNameToLCI.txt
Type: text/x-patch
Size: 8168 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20171112/2d452a5e/attachment.bin>


More information about the wine-devel mailing list