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
273ab6c7
Commit
273ab6c7
authored
Mar 23, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix codepage test for UTF-8 default codepage.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
63d7591b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
codepage.c
dlls/kernel32/tests/codepage.c
+5
-2
No files found.
dlls/kernel32/tests/codepage.c
View file @
273ab6c7
...
@@ -1152,7 +1152,8 @@ static void test_threadcp(void)
...
@@ -1152,7 +1152,8 @@ static void test_threadcp(void)
ret
=
GetCPInfoExA
(
CP_THREAD_ACP
,
0
,
&
cpi
);
ret
=
GetCPInfoExA
(
CP_THREAD_ACP
,
0
,
&
cpi
);
ok
(
ret
,
"GetCPInfoExA failed for lcid %04lx, error %ld
\n
"
,
lcids
[
i
].
lcid
,
GetLastError
());
ok
(
ret
,
"GetCPInfoExA failed for lcid %04lx, error %ld
\n
"
,
lcids
[
i
].
lcid
,
GetLastError
());
if
(
lcids
[
i
].
threadcp
)
if
(
lcids
[
i
].
threadcp
)
ok
(
cpi
.
CodePage
==
lcids
[
i
].
threadcp
,
"wrong codepage %u for lcid %04lx, should be %u
\n
"
,
ok
(
cpi
.
CodePage
==
lcids
[
i
].
threadcp
||
cpi
.
CodePage
==
CP_UTF8
/* Win10 1809+ */
,
"wrong codepage %u for lcid %04lx, should be %u
\n
"
,
cpi
.
CodePage
,
lcids
[
i
].
lcid
,
lcids
[
i
].
threadcp
);
cpi
.
CodePage
,
lcids
[
i
].
lcid
,
lcids
[
i
].
threadcp
);
else
else
ok
(
cpi
.
CodePage
==
acp
||
cpi
.
CodePage
==
CP_UTF8
/* Win10 1809+ */
,
ok
(
cpi
.
CodePage
==
acp
||
cpi
.
CodePage
==
CP_UTF8
/* Win10 1809+ */
,
...
@@ -1185,8 +1186,10 @@ static void test_threadcp(void)
...
@@ -1185,8 +1186,10 @@ static void test_threadcp(void)
{
{
SetThreadLocale
(
isleads
[
i
].
lcid
);
SetThreadLocale
(
isleads
[
i
].
lcid
);
GetCPInfoExA
(
CP_THREAD_ACP
,
0
,
&
cpi
);
islead
=
IsDBCSLeadByteEx
(
CP_THREAD_ACP
,
isleads
[
i
].
testchar
);
islead
=
IsDBCSLeadByteEx
(
CP_THREAD_ACP
,
isleads
[
i
].
testchar
);
ok
(
islead
==
isleads
[
i
].
islead
,
"wrong islead %i for test char %x in lcid %04lx. should be %i
\n
"
,
ok
(
islead
==
isleads
[
i
].
islead
||
(
cpi
.
CodePage
==
CP_UTF8
&&
!
islead
),
"wrong islead %i for test char %x in lcid %04lx. should be %i
\n
"
,
islead
,
isleads
[
i
].
testchar
,
isleads
[
i
].
lcid
,
isleads
[
i
].
islead
);
islead
,
isleads
[
i
].
testchar
,
isleads
[
i
].
lcid
,
isleads
[
i
].
islead
);
}
}
...
...
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