Qian Hong : msvcrt/tests: Added setlocale test for Chinese_China.936.
Alexandre Julliard
julliard at winehq.org
Mon Jul 22 14:22:46 CDT 2013
Module: wine
Branch: master
Commit: ff7746a0c8cdf4c94f724e398bc619146d929427
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff7746a0c8cdf4c94f724e398bc619146d929427
Author: Qian Hong <qhong at codeweavers.com>
Date: Mon Jul 22 16:57:12 2013 +0800
msvcrt/tests: Added setlocale test for Chinese_China.936.
---
dlls/msvcrt/tests/locale.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/msvcrt/tests/locale.c b/dlls/msvcrt/tests/locale.c
index 63f8a59..d8a1876 100644
--- a/dlls/msvcrt/tests/locale.c
+++ b/dlls/msvcrt/tests/locale.c
@@ -146,6 +146,18 @@ static void test_setlocale(void)
ok(!strcmp(ret, "Chinese (Traditional)_Taiwan.950")
|| broken(!strcmp(ret, "Chinese_Taiwan.950")), "ret = %s\n", ret);
+ ret = setlocale(LC_ALL, "Chinese_China.936");
+todo_wine
+ ok(ret != NULL || broken (ret == NULL), "ret == NULL\n");
+ if(ret)
+ {
+todo_wine
+ ok(!strcmp(ret, "Chinese (Simplified)_People's Republic of China.936")
+ || !strcmp(ret, "Chinese (Simplified)_China.936")
+ || broken(!strcmp(ret, "Chinese_People's Republic of China.936")), "ret = %s\n", ret);
+ trace("ret is %s\n", ret);
+ }
+
ret = setlocale(LC_ALL, "csy");
ok(ret != NULL || broken (ret == NULL), "ret == NULL\n");
if(ret)
More information about the wine-cvs
mailing list