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@xxxxxxxxxx>: > >> 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:
signature.asc
Description: This is a digitally signed message part.