[Bug 32073] New: Some chars are mapped as dead key
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Oct 27 10:12:36 CDT 2012
http://bugs.winehq.org/show_bug.cgi?id=32073
Bug #: 32073
Summary: Some chars are mapped as dead key
Product: Wine
Version: 1.5.16
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: winex11.drv
AssignedTo: wine-bugs at winehq.org
ReportedBy: cerebro.alexiel at gmail.com
Classification: Unclassified
When I use TapTouche, a typing training software, it warns me my keyboard is
mis-configured and disables automatically some exercices.
I installed it in an XP VM, compared with wine and found that exercices using
the following chars were not available in wine : é ç à ù â ê û î ô É È Ç À Ù Â
Ê Û Î Ô
Thanks to +relay and +key,+keyboard, I found that
VkKeyScan(0xe7) returns -1 in wine, 0x39 in windows
VkKeyScan(0xe8) returns -1 in wine, 0x37 in windows
I have a french keyboard and as you may have guessed, the 7 key contains 'è'
and '`' while the 9 key contains 'ç' and '^'.
For the following, I only focus on the 7 key (keycode 16) as it's the same
issue for the 9 key.
I played with XkbKeycodeToKeysym(display, 16, 0, [0-4]) and it returns
0xe8 'è' / 0x37 '7' / 0x60 '`' / 0xac6 '⅞'.
showing my keyboard is correctly mapped/configured so the issue is on the wine
side.
I looked at the source code and found the issue was in the loop at
http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/winex11.drv/keyboard.c#l1699
More precisely, line 1728, keycode_to_keysym returns 0xe8 for i=0,
XkbTranslateKeySym fails and as 0xe8 > 0x7F (the lastest ascii char), ckey[i]
is 0.
There is an explicit FIXME but as I don't fully understand it, I prefer filing
a bug.
If you need any info, testcase or log, just let me know.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list