Bug 405055 - Czech keyboard layout + Num Lock and problem with mapping Delete key as Delete + "," under the Wine
Summary: Czech keyboard layout + Num Lock and problem with mapping Delete key as Delet...
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Final
Hardware: 64bit Linux
: P2 - High : Normal with 1 vote (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 14:00 UTC by Ladislav Nesnera
Modified: 2008-07-28 16:33 UTC (History)
1 user (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
cz_sk-dropKPDL.diff (1.13 KB, patch)
2008-07-02 10:05 UTC, Stefan Dirsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ladislav Nesnera 2008-06-30 14:00:44 UTC
This problem was previously reported in the freedesktop.org as http://bugs.freedesktop.org/show_bug.cgi?id=14479 and there is Wine's viewpoint (http://bugs.winehq.org/show_bug.cgi?id=9325).
I'm putting it to Nowell's bugzilla, because I'm not able to make appropriate tests.
Environment:
Qt: 4.4.0
KDE: 4.00.84 (KDE 4.0.84 (KDE 4.1 >= 20080625) "release 1.1"
wine-1.1.0
openSUSE 11 64-bit
Comment 1 Stefan Dirsch 2008-06-30 14:10:08 UTC
Reassigning to our Wine expert. In general keyboard layout is a pain in Wine. :-(
Comment 2 Ladislav Nesnera 2008-07-01 10:58:29 UTC
Maybe it would be better reassigning it to someone KPDL mapping (Xorg) expert. This problem was closed in the Wine's bugzilla. There is a  Dmitry's comment why (http://bugs.winehq.org/show_bug.cgi?id=9325#c6)
In the Xorg bugzilla it's reported as http://bugs.freedesktop.org/show_bug.cgi?id=14479
Comment 3 Marcus Meissner 2008-07-02 09:44:51 UTC
i have no real idea here I am afraid.

Stefan, do we have X keyboard experts on staff?
Comment 4 Stefan Dirsch 2008-07-02 10:05:28 UTC
Created attachment 225513 [details]
cz_sk-dropKPDL.diff

Apply this patch with 

  patch -p0 < cz_sk-dropKPDL.diff

in /usr/share/X11/xkb.
Comment 5 Stefan Dirsch 2008-07-02 10:06:23 UTC
Ladislav, does applying the patch help?
Comment 6 Ladislav Nesnera 2008-07-02 11:36:20 UTC
Cool!  It seems to work fine. Great work. ;?)
Comment 7 Stefan Dirsch 2008-07-02 11:50:49 UTC
Ok. I'll fix it for openSUSE 11.1.
Comment 8 Ladislav Nesnera 2008-07-02 12:22:20 UTC
This issue is tied with openSUSE only or it's need some Xorg's activity also?
Comment 9 Stefan Dirsch 2008-07-02 12:52:41 UTC
The issue has been fixed upstream in CVS head of xkeyboard-config project. This is where I get the patches from.
Comment 10 Stefan Dirsch 2008-07-02 13:06:54 UTC
fixed for Factory.

xkeyboard-config.changes:
-------------------------------------------------------------------
Wed Jul  2 14:01:32 CEST 2008 - sndirsch@suse.de

- cz_sk-dropKPDL.diff
  * drop KPDL from cz/sk keyboard layout (bnc #405055, bfo #14479) 
Comment 11 Ladislav Nesnera 2008-07-04 18:24:15 UTC
Ups. It seems that we made new problem - http://bugs.winehq.org/show_bug.cgi?id=9325#c14. It's true if NumLock is switch On then numeric key "Del" have to insert comma in Czech and Slovak keyboard layout.
Comment 12 Ladislav Nesnera 2008-07-07 14:42:01 UTC
Reason for reopen is described in Comment #11, but once more:
The Czech/Slovak decimal symbol is comma (π=3,14) not point (π=3.14). Numeric key "Del" have assigned means point at this moment.

For discuss.
In the Windows OS switch between Czech/English changed means Del too (,/.). Maybe it would be better to tie it with content of field "Decimal symbol" in Regional & Language setting.
Comment 13 Stefan Dirsch 2008-07-07 16:25:48 UTC
I reverted the patch and can't reproduce the initial problem at all. With Numlock off "Delete key" behaves as expected. With Numlock on it gives me
comma in czech layout and point in us layout.

I've tested with notepad, which we ship with the wine package.

# setxkbmap us,cz -option "grp:shifts_toggle" -v
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+cz:2+group(shifts_toggle)
geometry:   pc(pc104)

# notepad
<works>

I will revert this change.
Comment 14 Stefan Dirsch 2008-07-07 16:28:32 UTC
done.
Comment 15 Ladislav Nesnera 2008-07-24 14:23:49 UTC
I tried:
xkbmap us,cz -option "grp:shifts_toggle" -v
with resul:
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes:   xfree86(thinkpad60)+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(thinkpad60)+cz:2+group(shifts_toggle)
geometry:   thinkpad(60)

The Delete key works fine but the Numeric Del writes "." not "," with the cz layout still. Behaviour is the same in Notepad and KWrite.

Notice: I tried to change keyboard geometry (Type) but always with the same result {pc(pc104), same MS geometry etc.}. My notebook is docked and both keyboards work equally.
Comment 16 Ladislav Nesnera 2008-07-28 15:58:04 UTC
See Comment #15
Comment 17 Stefan Dirsch 2008-07-28 16:33:29 UTC
As already mentioned in comment #13 I can't reproduce this problem. 

  ==> WORKSFORME