All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap
@ 2010-10-01 18:14 Eduardo Habkost
  2010-10-06 19:56 ` Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap) Eduardo Habkost
  0 siblings, 1 reply; 8+ messages in thread
From: Eduardo Habkost @ 2010-10-01 18:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: Oleg L. Sadov

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

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 pc-bios/keymaps/ru |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/pc-bios/keymaps/ru b/pc-bios/keymaps/ru
index b3e7d24..70a68f4 100644
--- a/pc-bios/keymaps/ru
+++ b/pc-bios/keymaps/ru
@@ -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
-- 
1.7.2.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
  2010-10-01 18:14 [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap Eduardo Habkost
@ 2010-10-06 19:56 ` Eduardo Habkost
  2010-10-07  4:38   ` Michael Tokarev
  2010-10-07  4:47   ` Michael Tokarev
  0 siblings, 2 replies; 8+ messages in thread
From: Eduardo Habkost @ 2010-10-06 19:56 UTC (permalink / raw)
  To: qemu-devel, Oleg L. Sadov


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.


On Fri, Oct 01, 2010 at 03:14:28PM -0300, Eduardo Habkost wrote:
> 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
> 
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  pc-bios/keymaps/ru |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/pc-bios/keymaps/ru b/pc-bios/keymaps/ru
> index b3e7d24..70a68f4 100644
> --- a/pc-bios/keymaps/ru
> +++ b/pc-bios/keymaps/ru
> @@ -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
> -- 
> 1.7.2.1
> 

-- 
Eduardo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
  2010-10-06 19:56 ` Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap) Eduardo Habkost
@ 2010-10-07  4:38   ` Michael Tokarev
  2010-10-18 17:30     ` Oleg Sadov
  2010-10-07  4:47   ` Michael Tokarev
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Tokarev @ 2010-10-07  4:38 UTC (permalink / raw)
  To: qemu-devel, Oleg L. Sadov

06.10.2010 23:56, Eduardo Habkost wrote:
> 
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
  2010-10-06 19:56 ` Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap) Eduardo Habkost
  2010-10-07  4:38   ` Michael Tokarev
@ 2010-10-07  4:47   ` Michael Tokarev
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2010-10-07  4:47 UTC (permalink / raw)
  To: qemu-devel, Oleg L. Sadov

06.10.2010 23:56, Eduardo Habkost wrote:
> 
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
  2010-10-07  4:38   ` Michael Tokarev
@ 2010-10-18 17:30     ` Oleg Sadov
  2010-10-18 18:59       ` Anthony Liguori
  0 siblings, 1 reply; 8+ messages in thread
From: Oleg Sadov @ 2010-10-18 17:30 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-devel

Sorry for delay with answer -- vacations time without e-mail account
access.

07/10/2010 08:38 +0400, Michael Tokarev wrote:
> 06.10.2010 23:56, Eduardo Habkost wrote:
> > 
> > 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?  :)

I don't understand reasons for such locale-default keyboard settings for
qemu too, but may be it's useful for someone...

> Thanks!
> 
> /mjt

Regards!
--Oleg

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
  2010-10-18 17:30     ` Oleg Sadov
@ 2010-10-18 18:59       ` Anthony Liguori
  2010-10-19  9:32         ` Daniel P. Berrange
  0 siblings, 1 reply; 8+ messages in thread
From: Anthony Liguori @ 2010-10-18 18:59 UTC (permalink / raw)
  To: Oleg Sadov; +Cc: Michael Tokarev, qemu-devel

On 10/18/2010 12:30 PM, Oleg Sadov wrote:
> 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

>> Thanks!
>>
>> /mjt
>>      
> Regards!
> --Oleg
>
>
>    

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
  2010-10-18 18:59       ` Anthony Liguori
@ 2010-10-19  9:32         ` Daniel P. Berrange
  2010-10-19 14:16           ` Oleg Sadov
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel P. Berrange @ 2010-10-19  9:32 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Oleg Sadov, Michael Tokarev, qemu-devel

On Mon, Oct 18, 2010 at 01:59:15PM -0500, Anthony Liguori wrote:
> On 10/18/2010 12:30 PM, Oleg Sadov wrote:
> >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
-- 
|: 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 :|

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)
  2010-10-19  9:32         ` Daniel P. Berrange
@ 2010-10-19 14:16           ` Oleg Sadov
  0 siblings, 0 replies; 8+ messages in thread
From: Oleg Sadov @ 2010-10-19 14:16 UTC (permalink / raw)
  To: Daniel P. Berrange; +Cc: Michael Tokarev, qemu-devel

19/10/2010 10:32 +0100, Daniel P. Berrange wrote:
> On Mon, Oct 18, 2010 at 01:59:15PM -0500, Anthony Liguori wrote:
> > On 10/18/2010 12:30 PM, Oleg Sadov wrote:
> > >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.

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.

> Regards,
> Daniel

Sincerely,
--Oleg

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-19 14:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-01 18:14 [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap Eduardo Habkost
2010-10-06 19:56 ` Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap) Eduardo Habkost
2010-10-07  4:38   ` Michael Tokarev
2010-10-18 17:30     ` Oleg Sadov
2010-10-18 18:59       ` Anthony Liguori
2010-10-19  9:32         ` Daniel P. Berrange
2010-10-19 14:16           ` Oleg Sadov
2010-10-07  4:47   ` Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.