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
63d7591b
Commit
63d7591b
authored
Mar 23, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix string test for UTF-8 default codepage.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5561c8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
string.c
dlls/ntdll/tests/string.c
+7
-4
No files found.
dlls/ntdll/tests/string.c
View file @
63d7591b
...
...
@@ -1837,7 +1837,7 @@ static void test_toupper(void)
{
int
i
,
ret
,
exp_ret
;
char
str
[
2
],
*
p
;
char
str
[
3
],
*
p
;
WCHAR
wc
;
ok
(
ptoupper
!=
NULL
,
"toupper is not available
\n
"
);
...
...
@@ -1846,17 +1846,20 @@ static void test_toupper(void)
{
str
[
0
]
=
i
;
str
[
1
]
=
i
>>
8
;
str
[
2
]
=
0
;
p
=
str
;
wc
=
RtlAnsiCharToUnicodeChar
(
&
p
);
wc
=
RtlUpcaseUnicodeChar
(
wc
);
ret
=
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wc
,
1
,
str
,
2
,
NULL
,
NULL
);
ok
(
ret
==
1
||
ret
==
2
,
"WideCharToMultiByte returned %d
\n
"
,
ret
);
ok
(
!
ret
||
ret
==
1
||
ret
==
2
,
"WideCharToMultiByte returned %d
\n
"
,
ret
);
if
(
ret
==
2
)
exp_ret
=
(
unsigned
char
)
str
[
1
]
+
((
unsigned
char
)
str
[
0
]
<<
8
);
else
else
if
(
ret
==
1
)
exp_ret
=
(
unsigned
char
)
str
[
0
];
else
exp_ret
=
(
WCHAR
)
i
;
ret
=
ptoupper
(
i
);
ret
=
(
WCHAR
)
ptoupper
(
i
);
ok
(
ret
==
exp_ret
,
"toupper(%x) = %x, expected %x
\n
"
,
i
,
ret
,
exp_ret
);
}
}
...
...
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