msvcrt: Accept Czechia as locale name.

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
André Hentschel 2018-03-27 19:24:14 +02:00 committed by Alexandre Julliard
parent dead047bdb
commit 4e5e56c822
1 changed files with 4 additions and 2 deletions

View File

@ -158,12 +158,14 @@ todo_wine
ret = setlocale(LC_ALL, "csy"); ret = setlocale(LC_ALL, "csy");
ok(ret != NULL || broken (ret == NULL), "ret == NULL\n"); ok(ret != NULL || broken (ret == NULL), "ret == NULL\n");
if(ret) if(ret)
ok(!strcmp(ret, "Czech_Czech Republic.1250"), "ret = %s\n", ret); ok(!strcmp(ret, "Czech_Czech Republic.1250")
|| !strcmp(ret, "Czech_Czechia.1250"), "ret = %s\n", ret);
ret = setlocale(LC_ALL, "czech"); ret = setlocale(LC_ALL, "czech");
ok(ret != NULL || broken (ret == NULL), "ret == NULL\n"); ok(ret != NULL || broken (ret == NULL), "ret == NULL\n");
if(ret) if(ret)
ok(!strcmp(ret, "Czech_Czech Republic.1250"), "ret = %s\n", ret); ok(!strcmp(ret, "Czech_Czech Republic.1250")
|| !strcmp(ret, "Czech_Czechia.1250"), "ret = %s\n", ret);
ret = setlocale(LC_ALL, "dan"); ret = setlocale(LC_ALL, "dan");
ok(ret != NULL || broken (ret == NULL), "ret == NULL\n"); ok(ret != NULL || broken (ret == NULL), "ret == NULL\n");