fix '/' and '|' on russian keymap
PATCH 1/1 fix '/' and '|' on russian keymap
Patch from Oleg L. Sadov.
Removes broken 'slash' and 'bar' definitions (that were duplicated) from the 'ru' keymap.
I can't test it myself, but the the fix was reported to be working, at:
https://bugzilla.redhat.com/show_bug.cgi?id=580637
--- pc-bios/keymaps/ru | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
pc-bios/keymaps/ru +0 -2
@@ -105,5 +105,3 @@ Cyrillic_yu 0x34 altgr Cyrillic_YU 0x34 shift altgr slash 0x35 question 0x35 shift -slash 0x56 altgr -bar 0x56 shift altgr
Signature · 1 line
1.7.2.1
Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
Anybody using a russian keyboard layout who can test this change and confirm it works as expected?
There's no need to rebuild qemu to test it. Just changing the keymap file on /us/share/qemu to remove the last two lines (shown below) should be enough.
Quoted 26 lines · Eduardo Habkost
Patch from Oleg L. Sadov.
Removes broken 'slash' and 'bar' definitions (that were duplicated) from the 'ru' keymap.
I can't test it myself, but the the fix was reported to be working, at:
https://bugzilla.redhat.com/show_bug.cgi?id=580637Signed-off-by Eduardo Habkost <[email protected]>--- pc-bios/keymaps/ru | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)pc-bios/keymaps/ru +0
-2@@ -105,5 +105,3 @@ Cyrillic_yu 0x34 altgr Cyrillic_YU 0x34 shift altgr slash 0x35 question 0x35 shift -slash 0x56 altgr -bar 0x56 shift altgrSignature · 1 line
1.7.2.1
Signature · 1 line
Eduardo
Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
Quoted 3 lines · Eduardo Habkost
Anybody using a russian keyboard layout who can test this change and confirm it works as expected?
I can perform such a testing - in theory. But in practice, I was never able to figure out this -k $lang stuff, -- neither in qemu nor in other apps like rdesktop and the like.
What I usually do is to explicitly set en-us keyboard for applications that are "too smart" and tries to guess "right" keyboard from env. variables such as $LANG.
The reason is that after specifying "ru" keyboard, I can't use latin chars anymore, and can type only using cyrillic. Since cyrillic layout does not have any latin char, imagine how to type, say, a path name (even "C:" drive in windows).
All modern OSes nowadays have a way to switch between keyboard layouts dynamically - this is done internally in the operating system. So, basically, I've no idea what this -k $foo stuff is used for to start with ;)
Care to explain please? Oleg? :)
Thanks!
/mjt
Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
Sorry for delay with answer -- vacations time without e-mail account access.
Quoted 18 lines · Michael Tokarev
Quoted 3 lines · Eduardo Habkost
Anybody using a russian keyboard layout who can test this change and confirm it works as expected?
I can perform such a testing - in theory. But in practice, I was never able to figure out this -k $lang stuff, -- neither in qemu nor in other apps like rdesktop and the like.
What I usually do is to explicitly set en-us keyboard for applications that are "too smart" and tries to guess "right" keyboard from env. variables such as $LANG.
The reason is that after specifying "ru" keyboard, I can't use latin chars anymore, and can type only using cyrillic. Since cyrillic layout does not have any latin char, imagine how to type, say, a path name (even "C:" drive in windows).
Quoted 6 lines
All modern OSes nowadays have a way to switch between keyboard layouts dynamically - this is done internally in the operating system. So, basically, I've no idea what this -k $foo stuff is used for to start with ;)
Care to explain please? Oleg? :)
I don't understand reasons for such locale-default keyboard settings for qemu too, but may be it's useful for someone...
Quoted 3 lines
Thanks!
/mjt
Regards!
--Oleg
Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
Quoted 3 lines · Oleg Sadov
I don't understand reasons for such locale-default keyboard settings for qemu too, but may be it's useful for someone...
-k only exists to deal with crappy VNC clients.
If you use a good VNC client (like vinagre or virt-viewer) then you don't have to use -k.
Regards,
Anthony Liguori
Quoted 9 lines
Quoted 4 lines
Thanks!
/mjt
Regards!
--Oleg
Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
Quoted 9 lines · Anthony Liguori
Quoted 3 lines · Oleg Sadov
I don't understand reasons for such locale-default keyboard settings for qemu too, but may be it's useful for someone...
-k only exists to deal with crappy VNC clients.
If you use a good VNC client (like vinagre or virt-viewer) then you don't have to use -k.
Indeed you must *NOT* use -k then, because that disables the extension that vinagre/virt-viewer rely on for sane keyboard handling.
Regards,
Daniel
Signature · 4 lines
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
Quoted 6 lines · Daniel P. Berrange
Quoted 5 lines · Anthony Liguori
Quoted 3 lines · Oleg Sadov
I don't understand reasons for such locale-default keyboard settings for qemu too, but may be it's useful for someone...
Quoted 7 lines
Quoted 4 lines
-k only exists to deal with crappy VNC clients.
If you use a good VNC client (like vinagre or virt-viewer) then you don't have to use -k.
Indeed you must *NOT* use -k then, because that disables the extension that vinagre/virt-viewer rely on for sane keyboard handling.
I don't use '-k' option directly -- in my RHEL-based system it's automagically appended to qemu-kvm by libvirt. KVM XML-description, created by standard virt-manager GUI-interface (package virt-manager-0.6.1-12.el5.x86_64), has a 'keymap' attribute of 'graphics' tag, despite that configurator don't have any controls for 'keymap' setting.
As I understand, 'default_keymap' function from util.py (package python-virtinst-0.400.3-9.el5.noarch) got information from /etc/sysconfig/keyboard, then keymap searched in 'keytable' dictionary from keytable.py and automatically placed to 'keymap' attribute of 'graphics' tag in virtual-machine XML-description.
In our system we have a russian keyboard settings => we've got a XML description like this:
<graphics type='vnc' port='-1' autoport='yes' keymap='ru'/>
and, as a consequence, qemu-kvm running with '-k ru' option.
Quoted 2 lines
Regards,
Daniel
Sincerely,
--Oleg
Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
In reply to Eduardo HabkostQuoted 3 lines · Eduardo Habkost
Anybody using a russian keyboard layout who can test this change and confirm it works as expected?
Um, regardless of my previous email, the change is indeed correct and needed, or else the slash/question key (the one that's usually on the left from the right shift, above the windows key) produces backslash and vertical bar instead. So I can confirm it's the right change.
(But I still don't know what's the reason of all these keymaps ;)
/mjt