All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar-JGs/UdohzUI@public.gmane.org>
To: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org
Subject: Re: [PATCH] Fix autodetection of UNICODE keymap
Date: Thu, 12 Aug 2010 21:26:04 +0400	[thread overview]
Message-ID: <201008122126.09007.arvidjaar@mail.ru> (raw)
In-Reply-To: <4C63E8EC.7040507-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

[-- Attachment #1: Type: Text/Plain, Size: 2255 bytes --]

On Thursday 12 of August 2010 16:28:28 Harald Hoyer wrote:
> On 08/12/2010 01:48 PM, Andrey Borzenkov wrote:
> > Thu, 12 Aug 2010 13:08:25 +0200 письмо от Harald 
Hoyer<harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>:
> >> On 08/12/2010 01:05 PM, Harald Hoyer wrote:
> >>> On 08/11/2010 07:47 PM, Andrey Borzenkov wrote:
> >>>> +
> >>>> + # KEYTABLE is a bit special - it defines base keymap name and
> >>>> UNICODE + # determines whether non-UNICODE or UNICODE version
> >>>> is used +
> >>>> + if [[ ${KEYTABLE} ]]; then
> >>>> + if [[ ${UNICODE} == 1 ]]; then
> >>>> + [[ ${KEYTABLE} =~ .*\.uni.* ]] ||
> >>>> KEYTABLE=${KEYTABLE%.map*}.uni + fi
> >>>> +
> >>>> + KEYMAP=${KEYTABLE}
> >>>> + fi
> >>> 
> >>> On Fedora we would end with:
> >>> 
> >>> KEYTABLE="de-latin1-nodeadkeys"
> >>> 
> >>> at
> >>> 
> >>> KEYMAP="de-latin1-nodeadkeys.uni"
> >>> 
> >>> which does not exist.
> > 
> > Could you send me your /etc/sysconfig/keyboard (or where these are
> > defined)?
> > 
> > So, in other words - you have UTF-8 environment but load
> > non-UNICODE keyboard?
> > 
> >> Fedora's console_init calls "loadkeys" with "-u", if its LANG has
> >> .UTF-8
> > 
> > It does not help here, unfortunately. Which version of initscripts
> > is it? --
> 
> http://git.fedorahosted.org/git/?p=initscripts.git;a=blob;f=src/conso
> le_init.c
> 
> It's been like this forever...
> 
> http://git.fedorahosted.org/git/?p=initscripts.git;a=history;f=src/co
> nsole_init.c
> 
> # loadkeys -u de-latin1-nodeadkeys
> Loading /lib/kbd/keymaps/i386/qwertz/de-latin1-nodeadkeys.map.gz

OK, so

- KEYTABLE handling is Mandriva specific patch. Sorry for confusion
- loadkeys -u fails misereably for all Russian keymaps that use 8 bit 
character set. This is generic kbd issue that is not easy to fix (in 
short - loadkeys treats all single byte characters as latin1. So it 
converts into UNICODE just fine - but not Russian UNICODE, rather Latin 
one ...). 

This means there is no way to have single Russian keymap that works 
either in 8 bit or UTF-8 character sets. But Mandriva tools use single 
KEYTABLE for defining keyboard layout ...

I think I just leave it as distro-specific patch for now then.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2010-08-12 17:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11 17:47 [PATCH] Fix autodetection of UNICODE keymap Andrey Borzenkov
2010-08-12 11:05 ` Harald Hoyer
     [not found]   ` <4C63D565.3030405-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-08-12 11:08     ` Harald Hoyer
     [not found]       ` <4C63D629.4040204-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-08-12 11:48         ` Re[2]: " Andrey Borzenkov
     [not found]           ` <E1OjWGr-0004HZ-00.arvidjaar-mail-ru-KwwT3n/ykh4edp2WBT/QOw@public.gmane.org>
2010-08-12 12:28             ` Harald Hoyer
     [not found]               ` <4C63E8EC.7040507-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-08-12 17:26                 ` Andrey Borzenkov [this message]
2010-08-12 11:52 ` Amadeusz Żołnowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201008122126.09007.arvidjaar@mail.ru \
    --to=arvidjaar-jgs/udohzui@public.gmane.org \
    --cc=aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.