From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Subject: Re: [PATCH] Fix autodetection of UNICODE keymap Date: Thu, 12 Aug 2010 13:08:25 +0200 Message-ID: <4C63D629.4040204@redhat.com> References: <20100811174757.15606.72777.stgit@cooker> <4C63D565.3030405@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4C63D565.3030405-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Andrey Borzenkov Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, aidecoe-2qtfh70TtYba5EbDDlwbIw@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. Fedora's console_init calls "loadkeys" with "-u", if its LANG has .UTF-8