Commit fac521ee authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr110/tests: Fix setlocale test failure on systems with UTF-8 locales enabled.

parent 5d5b2acf
...@@ -132,7 +132,15 @@ static void test_setlocale(void) ...@@ -132,7 +132,15 @@ static void test_setlocale(void)
for(i=0; i<ARRAY_SIZE(names); i++) { for(i=0; i<ARRAY_SIZE(names); i++) {
ret = p_setlocale(LC_ALL, names[i]); ret = p_setlocale(LC_ALL, names[i]);
ok(ret != NULL, "expected success, but got NULL\n"); ok(ret != NULL, "expected success, but got NULL\n");
ok(!strcmp(ret, names[i]), "expected %s, got %s\n", names[i], ret); if(!strcmp(names[i], "syr-SY") && GetACP() == CP_UTF8)
{
todo_wine ok(!strcmp(ret, "LC_COLLATE=syr-SY;LC_CTYPE=EN-US;LC_MONETARY=syr-SY;"
"LC_NUMERIC=syr-SY;LC_TIME=syr-SY"), "got %s\n", ret);
}
else
{
ok(!strcmp(ret, names[i]), "expected %s, got %s\n", names[i], ret);
}
} }
ret = p_setlocale(LC_ALL, "en-us.1250"); ret = p_setlocale(LC_ALL, "en-us.1250");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment