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
41a53f53
Commit
41a53f53
authored
Feb 15, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Show ToAscii(A) returns 'a' for multiple keyboard layouts.
Not all layouts return 'a' but layouts like Azerty still return 'a' despite the A and Q keys being swapped.
parent
df811f91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
input.c
dlls/user32/tests/input.c
+10
-2
No files found.
dlls/user32/tests/input.c
View file @
41a53f53
...
...
@@ -3177,7 +3177,6 @@ static void test_ToAscii(void)
const
BYTE
HIGHEST_BIT
=
0x80
;
int
ret
,
len
;
DWORD
gle
;
BOOL
us_kbd
=
(
GetKeyboardLayout
(
0
)
==
(
HKL
)(
ULONG_PTR
)
0x04090409
);
memset
(
state
,
0
,
sizeof
(
state
));
...
...
@@ -3202,7 +3201,16 @@ static void test_ToAscii(void)
else
/* ToAscii() can only return 2 chars => it fails if len > 2 */
ok
(
ret
==
0
,
"ToAscii(A) returned %i, expected 0
\n
"
,
ret
);
if
(
us_kbd
)
ok
(
character
==
'a'
,
"ToAscii for character 'A' was %i (expected %i)
\n
"
,
character
,
'a'
);
switch
((
ULONG_PTR
)
GetKeyboardLayout
(
0
))
{
case
0x04090409
:
/* Qwerty */
case
0x04070407
:
/* Qwertz */
case
0x040c040c
:
/* Azerty */
ok
(
lstrcmpW
(
wstr
,
L"a"
)
==
0
,
"ToUnicode(A) returned %s
\n
"
,
wine_dbgstr_w
(
wstr
));
ok
(
character
==
'a'
,
"ToAscii(A) returned char=%i, expected %i
\n
"
,
character
,
'a'
);
break
;
/* Other keyboard layouts may or may not return 'a' */
}
state
[
VK_CONTROL
]
|=
HIGHEST_BIT
;
state
[
VK_LCONTROL
]
|=
HIGHEST_BIT
;
...
...
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