Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3da1616e
Commit
3da1616e
authored
Jan 24, 2017
by
Andrew Eikum
Committed by
Alexandre Julliard
Jan 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test result from LCIDToLocaleName.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
77376936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
locale.c
dlls/kernel32/tests/locale.c
+16
-15
No files found.
dlls/kernel32/tests/locale.c
View file @
3da1616e
...
...
@@ -2675,25 +2675,26 @@ static void test_LCMapStringEx(void)
struct
neutralsublang_name_t
{
WCHAR
name
[
3
];
WCHAR
sname
[
16
];
LCID
lcid
;
int
todo
;
};
static
const
struct
neutralsublang_name_t
neutralsublang_names
[]
=
{
{
{
'a'
,
'r'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_ARABIC
,
SUBLANG_ARABIC_SAUDI_ARABIA
),
SORT_DEFAULT
)
},
{
{
'a'
,
'z'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_AZERI
,
SUBLANG_AZERI_LATIN
),
SORT_DEFAULT
)
},
{
{
'd'
,
'e'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_GERMAN
,
SUBLANG_GERMAN
),
SORT_DEFAULT
)
},
{
{
'e'
,
'n'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
)
},
{
{
'e'
,
's'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_SPANISH
,
SUBLANG_SPANISH_MODERN
),
SORT_DEFAULT
)
},
{
{
'g'
,
'a'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_IRISH
,
SUBLANG_IRISH_IRELAND
),
SORT_DEFAULT
)
},
{
{
'i'
,
't'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_ITALIAN
,
SUBLANG_ITALIAN
),
SORT_DEFAULT
)
},
{
{
'm'
,
's'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_MALAY
,
SUBLANG_MALAY_MALAYSIA
),
SORT_DEFAULT
)
},
{
{
'n'
,
'l'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_DUTCH
,
SUBLANG_DUTCH
),
SORT_DEFAULT
)
},
{
{
'p'
,
't'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_PORTUGUESE
,
SUBLANG_PORTUGUESE_BRAZILIAN
),
SORT_DEFAULT
)
},
{
{
's'
,
'r'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_SERBIAN
,
SUBLANG_SERBIAN_SERBIA_LATIN
),
SORT_DEFAULT
),
1
},
{
{
's'
,
'v'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_SWEDISH
,
SUBLANG_SWEDISH
),
SORT_DEFAULT
)
},
{
{
'u'
,
'z'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_UZBEK
,
SUBLANG_UZBEK_LATIN
),
SORT_DEFAULT
)
},
{
{
'z'
,
'h'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_CHINESE_SIMPLIFIED
),
SORT_DEFAULT
)
},
{
{
'a'
,
'r'
,
0
},
{
'a'
,
'r'
,
'-'
,
'S'
,
'A'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_ARABIC
,
SUBLANG_ARABIC_SAUDI_ARABIA
),
SORT_DEFAULT
)
},
{
{
'a'
,
'z'
,
0
},
{
'a'
,
'z'
,
'-'
,
'L'
,
'a'
,
't'
,
'n'
,
'-'
,
'A'
,
'Z'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_AZERI
,
SUBLANG_AZERI_LATIN
),
SORT_DEFAULT
)
},
{
{
'd'
,
'e'
,
0
},
{
'd'
,
'e'
,
'-'
,
'D'
,
'E'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_GERMAN
,
SUBLANG_GERMAN
),
SORT_DEFAULT
)
},
{
{
'e'
,
'n'
,
0
},
{
'e'
,
'n'
,
'-'
,
'U'
,
'S'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
)
},
{
{
'e'
,
's'
,
0
},
{
'e'
,
's'
,
'-'
,
'E'
,
'S'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_SPANISH
,
SUBLANG_SPANISH_MODERN
),
SORT_DEFAULT
)
},
{
{
'g'
,
'a'
,
0
},
{
'g'
,
'a'
,
'-'
,
'I'
,
'E'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_IRISH
,
SUBLANG_IRISH_IRELAND
),
SORT_DEFAULT
)
},
{
{
'i'
,
't'
,
0
},
{
'i'
,
't'
,
'-'
,
'I'
,
'T'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_ITALIAN
,
SUBLANG_ITALIAN
),
SORT_DEFAULT
)
},
{
{
'm'
,
's'
,
0
},
{
'm'
,
's'
,
'-'
,
'M'
,
'Y'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_MALAY
,
SUBLANG_MALAY_MALAYSIA
),
SORT_DEFAULT
)
},
{
{
'n'
,
'l'
,
0
},
{
'n'
,
'l'
,
'-'
,
'N'
,
'L'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_DUTCH
,
SUBLANG_DUTCH
),
SORT_DEFAULT
)
},
{
{
'p'
,
't'
,
0
},
{
'p'
,
't'
,
'-'
,
'B'
,
'R'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_PORTUGUESE
,
SUBLANG_PORTUGUESE_BRAZILIAN
),
SORT_DEFAULT
)
},
{
{
's'
,
'r'
,
0
},
{
's'
,
'r'
,
'-'
,
'L'
,
'a'
,
't'
,
'n'
,
'-'
,
'R'
,
'S'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_SERBIAN
,
SUBLANG_SERBIAN_SERBIA_LATIN
),
SORT_DEFAULT
),
1
},
{
{
's'
,
'v'
,
0
},
{
's'
,
'v'
,
'-'
,
'S'
,
'E'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_SWEDISH
,
SUBLANG_SWEDISH
),
SORT_DEFAULT
)
},
{
{
'u'
,
'z'
,
0
},
{
'u'
,
'z'
,
'-'
,
'L'
,
'a'
,
't'
,
'n'
,
'-'
,
'U'
,
'Z'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_UZBEK
,
SUBLANG_UZBEK_LATIN
),
SORT_DEFAULT
)
},
{
{
'z'
,
'h'
,
0
},
{
'z'
,
'h'
,
'-'
,
'C'
,
'N'
,
0
},
MAKELCID
(
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_CHINESE_SIMPLIFIED
),
SORT_DEFAULT
)
},
{
{
0
}
}
};
...
...
@@ -2761,7 +2762,7 @@ static void test_LocaleNameToLCID(void)
*
buffer
=
0
;
ret
=
pLCIDToLocaleName
(
lcid
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
0
);
ok
(
ret
>
0
,
"%s: got %d
\n
"
,
wine_dbgstr_w
(
ptr
->
name
),
ret
);
ok
(
lstrcmpW
(
ptr
->
name
,
buffer
),
"%s: got wrong locale name %s
\n
"
,
ok
(
!
lstrcmpW
(
ptr
->
s
name
,
buffer
),
"%s: got wrong locale name %s
\n
"
,
wine_dbgstr_w
(
ptr
->
name
),
wine_dbgstr_w
(
buffer
));
ptr
++
;
...
...
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