Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fbbe8e26
Commit
fbbe8e26
authored
Jun 05, 2023
by
Victor Chiletto
Committed by
Alexandre Julliard
Jul 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr110/tests: Add tests for new setlocale behaviors.
A bunch of locales had changes >= msvcr 110.
parent
ac6a2f2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
+78
-0
msvcr110.c
dlls/msvcr110/tests/msvcr110.c
+78
-0
No files found.
dlls/msvcr110/tests/msvcr110.c
View file @
fbbe8e26
...
...
@@ -152,6 +152,84 @@ static void test_setlocale(void)
ret
=
p_setlocale
(
LC_ALL
,
"en-us.1250"
);
ok
(
!
ret
,
"setlocale(en-us.1250) succeeded (%s)
\n
"
,
ret
);
ret
=
p_setlocale
(
LC_ALL
,
"zh-Hans"
);
todo_wine
ok
((
ret
!=
NULL
||
broken
(
ret
==
NULL
)),
/* Vista */
"expected success, but got NULL
\n
"
);
if
(
ret
)
ok
(
!
strcmp
(
ret
,
"zh-Hans"
),
"setlocale zh-Hans failed
\n
"
);
ret
=
p_setlocale
(
LC_ALL
,
"zh-Hant"
);
todo_wine
ok
((
ret
!=
NULL
||
broken
(
ret
==
NULL
)),
/* Vista */
"expected success, but got NULL
\n
"
);
if
(
ret
)
ok
(
!
strcmp
(
ret
,
"zh-Hant"
),
"setlocale zh-Hant failed
\n
"
);
/* used to return Chinese (Simplified)_China.936 */
ret
=
p_setlocale
(
LC_ALL
,
"chinese"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Chinese_China.936"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
))
/* Vista */
||
broken
(
!
strcmp
(
ret
,
"Chinese_People's Republic of China.936"
))),
/* 7 */
"setlocale chinese failed, got %s
\n
"
,
ret
);
/* used to return Chinese (Simplified)_China.936 */
ret
=
p_setlocale
(
LC_ALL
,
"Chinese_China.936"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Chinese_China.936"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
))
/* Vista */
||
broken
(
!
strcmp
(
ret
,
"Chinese_People's Republic of China.936"
))),
/* 7 */
"setlocale Chinese_China.936 failed, got %s
\n
"
,
ret
);
/* used to return Chinese (Simplified)_China.936 */
ret
=
p_setlocale
(
LC_ALL
,
"chinese-simplified"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Chinese_China.936"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
))),
/* Vista */
"setlocale chinese-simplified failed, got %s
\n
"
,
ret
);
/* used to return Chinese (Simplified)_China.936 */
ret
=
p_setlocale
(
LC_ALL
,
"chs"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Chinese_China.936"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
))),
/* Vista */
"setlocale chs failed, got %s
\n
"
,
ret
);
/* used to return Chinese (Traditional)_Taiwan.950 */
ret
=
p_setlocale
(
LC_ALL
,
"cht"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Chinese (Traditional)_Hong Kong SAR.950"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese (Traditional)_Taiwan.950"
))),
/* Vista - 7 */
"setlocale cht failed, got %s
\n
"
,
ret
);
/* used to return Chinese (Traditional)_Taiwan.950 */
ret
=
p_setlocale
(
LC_ALL
,
"chinese-traditional"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Chinese (Traditional)_Hong Kong SAR.950"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese (Traditional)_Taiwan.950"
))),
/* Vista - 7 */
"setlocale chinese-traditional failed, got %s
\n
"
,
ret
);
ret
=
p_setlocale
(
LC_ALL
,
"norwegian-nynorsk"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Norwegian Nynorsk_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Nynorsk)_Norway.1252"
))),
/* Vista - 7 */
"setlocale norwegian-nynorsk failed, got %s
\n
"
,
ret
);
ret
=
p_setlocale
(
LC_ALL
,
"non"
);
ok
(
ret
!=
NULL
,
"expected success, but got NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Norwegian Nynorsk_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Nynorsk)_Norway.1252"
))),
/* Vista - 7 */
"setlocale norwegian-nynorsk failed, got %s
\n
"
,
ret
);
p_setlocale
(
LC_ALL
,
"C"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment