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
2c08a3fb
Commit
2c08a3fb
authored
Aug 30, 2010
by
Alexandre Goujon
Committed by
Alexandre Julliard
Aug 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Properly fix setlocale and clean up tests.
parent
364559b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
18 deletions
+20
-18
chs.nls
dlls/kernel32/nls/chs.nls
+1
-1
cht.nls
dlls/kernel32/nls/cht.nls
+1
-1
locale.c
dlls/msvcrt/tests/locale.c
+18
-16
No files found.
dlls/kernel32/nls/chs.nls
View file @
2c08a3fb
...
...
@@ -97,7 +97,7 @@ STRINGTABLE LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
LOCALE_SDECIMAL "."
LOCALE_SENGCOUNTRY "People's Republic of China"
LOCALE_SENGCURRNAME "PRC Yuan Renminbi"
LOCALE_SENGLANGUAGE "Chinese"
LOCALE_SENGLANGUAGE "Chinese
(Simplified)
"
LOCALE_SGROUPING "3;0"
LOCALE_SINTLSYMBOL "CNY"
LOCALE_SISO3166CTRYNAME "CN"
...
...
dlls/kernel32/nls/cht.nls
View file @
2c08a3fb
...
...
@@ -97,7 +97,7 @@ STRINGTABLE LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
LOCALE_SDECIMAL "."
LOCALE_SENGCOUNTRY "Taiwan"
LOCALE_SENGCURRNAME "New Taiwan Dollar"
LOCALE_SENGLANGUAGE "Chinese"
LOCALE_SENGLANGUAGE "Chinese
(Traditional)
"
LOCALE_SGROUPING "3;0"
LOCALE_SINTLSYMBOL "TWD"
LOCALE_SISO3166CTRYNAME "TW"
...
...
dlls/msvcrt/tests/locale.c
View file @
2c08a3fb
...
...
@@ -110,32 +110,32 @@ static void test_setlocale(void)
ret
=
setlocale
(
LC_ALL
,
"chinese"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
)
ok
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese_Taiwan.950"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"chinese-simplified"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
)
ok
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese_People's Republic of China.936"
))
||
broken
(
!
strcmp
(
ret
,
"Chinese_Taiwan.950"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"chinese-traditional"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
(
!
strcmp
(
ret
,
"Chinese (Traditional)_Taiwan.950"
)
ok
(
!
strcmp
(
ret
,
"Chinese (Traditional)_Taiwan.950"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese_Taiwan.950"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"chs"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
)
ok
(
!
strcmp
(
ret
,
"Chinese (Simplified)_People's Republic of China.936"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese_People's Republic of China.936"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"cht"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
(
!
strcmp
(
ret
,
"Chinese (Traditional)_Taiwan.950"
)
ok
(
!
strcmp
(
ret
,
"Chinese (Traditional)_Taiwan.950"
)
||
broken
(
!
strcmp
(
ret
,
"Chinese_Taiwan.950"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"csy"
);
...
...
@@ -390,12 +390,14 @@ static void test_setlocale(void)
ret
=
setlocale
(
LC_ALL
,
"italian-swiss"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
ok
(
!
strcmp
(
ret
,
"Italian_Switzerland.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Italian_Italy.1252"
)),
"ret = %s
\n
"
,
ret
);
ok
(
!
strcmp
(
ret
,
"Italian_Switzerland.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Italian_Italy.1252"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"its"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
ok
(
!
strcmp
(
ret
,
"Italian_Switzerland.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Italian_Italy.1252"
)),
"ret = %s
\n
"
,
ret
);
ok
(
!
strcmp
(
ret
,
"Italian_Switzerland.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Italian_Italy.1252"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"japanese"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
...
...
@@ -431,31 +433,31 @@ static void test_setlocale(void)
ret
=
setlocale
(
LC_ALL
,
"non"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
((
!
strcmp
(
ret
,
"Norwegian-Nynorsk_Norway.1252"
))
ok
(
!
strcmp
(
ret
,
"Norwegian-Nynorsk_Norway.1252"
)
||
!
strcmp
(
ret
,
"Norwegian (Nynorsk)_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Bokml)_Norway.1252"
))
||
broken
(
!
strcmp
(
ret
,
"Norwegian_Norway.1252"
))
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Nynorsk)_Norway.1252"
)),
"ret = %s
\n
"
,
ret
);
||
broken
(
!
strcmp
(
ret
,
"Norwegian_Norway.1252"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"nor"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
ok
(
!
strcmp
(
ret
,
"Norwegian (Bokml)_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Bokmal)_Norway.1252"
)
)
||
!
strcmp
(
ret
,
"Norwegian (Bokmal)_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian_Norway.1252"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"norwegian-bokmal"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
ok
(
!
strcmp
(
ret
,
"Norwegian (Bokml)_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Bokmal)_Norway.1252"
)
)
||
!
strcmp
(
ret
,
"Norwegian (Bokmal)_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian_Norway.1252"
)),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"norwegian-nynorsk"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
(
!
strcmp
(
ret
,
"Norwegian-Nynorsk_Norway.1252"
)
ok
(
!
strcmp
(
ret
,
"Norwegian-Nynorsk_Norway.1252"
)
||
!
strcmp
(
ret
,
"Norwegian (Nynorsk)_Norway.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Norwegian_Norway.1252"
))
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Nynorsk)_Norway.1252"
))
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Bokmal)_Norway.1252"
))
||
broken
(
!
strcmp
(
ret
,
"Norwegian (Bokml)_Norway.1252"
)),
"ret = %s
\n
"
,
ret
);
...
...
@@ -524,8 +526,8 @@ static void test_setlocale(void)
ret
=
setlocale
(
LC_ALL
,
"spanish-modern"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
todo_wine
ok
(
!
strcmp
(
ret
,
"Spanish - Modern Sort_Spain.1252"
)
||
broken
(
!
strcmp
(
ret
,
"Spanish_Spain.1252"
)
),
"ret = %s
\n
"
,
ret
);
ok
(
!
strcmp
(
ret
,
"Spanish - Modern Sort_Spain.1252"
)
||
!
strcmp
(
ret
,
"Spanish_Spain.1252"
),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"sve"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
...
...
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