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
f692d9e7
Commit
f692d9e7
authored
Jan 04, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some codepage test failures with Windows 10.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
230a09b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
codepage.c
dlls/kernel32/tests/codepage.c
+8
-7
No files found.
dlls/kernel32/tests/codepage.c
View file @
f692d9e7
...
...
@@ -1060,7 +1060,7 @@ static void test_threadcp(void)
static
const
LCID
JAPANESE
=
MAKELCID
(
MAKELANGID
(
LANG_JAPANESE
,
SUBLANG_JAPANESE_JAPAN
),
SORT_DEFAULT
);
static
const
LCID
CHINESE
=
MAKELCID
(
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_CHINESE_SIMPLIFIED
),
SORT_DEFAULT
);
BOOL
islead
,
islead_
acp
;
BOOL
islead
,
islead_
default
;
CPINFOEXA
cpi
;
UINT
cp
,
acp
;
int
i
,
num
;
...
...
@@ -1155,8 +1155,8 @@ static void test_threadcp(void)
ok
(
cpi
.
CodePage
==
lcids
[
i
].
threadcp
,
"wrong codepage %u for lcid %04x, should be %u
\n
"
,
cpi
.
CodePage
,
lcids
[
i
].
lcid
,
lcids
[
i
].
threadcp
);
else
ok
(
cpi
.
CodePage
==
acp
,
"wrong codepage %u for lcid %04x, should be %u
\n
"
,
cpi
.
CodePage
,
lcids
[
i
].
lcid
,
acp
);
ok
(
cpi
.
CodePage
==
acp
||
cpi
.
CodePage
==
CP_UTF8
/* Win10 1809+ */
,
"wrong codepage %u for lcid %04x, should be %u
\n
"
,
cpi
.
CodePage
,
lcids
[
i
].
lcid
,
acp
);
/* WideCharToMultiByte - CP_THREAD_ACP */
num
=
WideCharToMultiByte
(
CP_THREAD_ACP
,
0
,
foobarW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
...
...
@@ -1172,11 +1172,12 @@ static void test_threadcp(void)
{
SetThreadLocale
(
isleads_nocp
[
i
].
lcid
);
islead_acp
=
IsDBCSLeadByteEx
(
CP_ACP
,
isleads_nocp
[
i
].
testchar
);
islead
=
IsDBCSLeadByteEx
(
CP_THREAD_ACP
,
isleads_nocp
[
i
].
testchar
);
GetCPInfoExA
(
CP_THREAD_ACP
,
0
,
&
cpi
);
islead_default
=
IsDBCSLeadByteEx
(
cpi
.
CodePage
,
isleads_nocp
[
i
].
testchar
);
islead
=
IsDBCSLeadByteEx
(
CP_THREAD_ACP
,
isleads_nocp
[
i
].
testchar
);
ok
(
islead
==
islead_
acp
,
"wrong islead %i for test char %x in lcid %04x. should be %i
\n
"
,
islead
,
isleads_nocp
[
i
].
testchar
,
isleads_nocp
[
i
].
lcid
,
islead_
acp
);
ok
(
islead
==
islead_
default
,
"wrong islead %i for test char %x in lcid %04x. should be %i
\n
"
,
islead
,
isleads_nocp
[
i
].
testchar
,
isleads_nocp
[
i
].
lcid
,
islead_
default
);
}
/* IsDBCSLeadByteEx - locales with codepage */
...
...
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