From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts Date: Fri, 3 Apr 2020 02:38:16 +0200 Message-ID: <20200403003816.oywdf75mj7yjzygj@pelzflorian.localdomain> References: <20200328134202.rgl6usllluoo2b2y@pelzflorian.localdomain> <87a740nu0u.fsf@gmail.com> <20200330104449.ahyivwdn62g6jluw@pelzflorian.localdomain> <875zemoz26.fsf@gmail.com> <20200330171113.njx7wstlmace45xk@pelzflorian.localdomain> <871rp8v8oi.fsf@gnu.org> <20200331165559.6yfowbvtuoth6vdw@pelzflorian.localdomain> <87k12yql0i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49975) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKAMR-00060u-KI for bug-guix@gnu.org; Thu, 02 Apr 2020 20:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKAMQ-0003jY-Ei for bug-guix@gnu.org; Thu, 02 Apr 2020 20:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57688) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKAMQ-0003jS-B0 for bug-guix@gnu.org; Thu, 02 Apr 2020 20:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jKAMQ-0008VA-65 for bug-guix@gnu.org; Thu, 02 Apr 2020 20:39:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87k12yql0i.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 40273@debbugs.gnu.org On Thu, Apr 02, 2020 at 11:45:01AM +0200, Ludovic Courtès wrote: > The attached patch fixes that. I’ve confirmed that it works as intended > in Xorg and in the console Thank you, it works fine, even for entering the LUKS passphrase after GRUB in the Linux kernel. Only GRUB uses U.S. QWERTY layout. > (I’m not sure it works in GDM, but it > definitely works in an xterm in ratpoison, for instance.) GDM retains my U.S. English layout even after herd stop xorg-server and deleting all files in /var/lib/gdm. Deleting all files also made my fonts different in gnome-terminal, Icecat, Emacs, also gnome-initial-setup got run again, but these issues are unrelated to this bug and do not happen if one does not “sudo rm -rf /var/lib/gdm/.*”. > I was wondering whether to push the patch as-is or to require people to > write: > > (keyboard-layout '("ar" "fr") …) > > instead. Maybe it’s OK to leave the comma here. Lists seem more consistent with the Scheme syntax. > > However, I noticed that this doesn’t work in GRUB. Actually, even > (keyboard-layout "fr") doesn’t work in GRUB (at the command line after > the boot menu), which seems like a regression. I suppose on GRUB using at_keyboard it worked in the past? For me there’s no regression because keyboard layouts never worked (using usb keyboard rather than at keyboard), see . Back then I was told to open a bug at GRUB, which I have not done. There are other old bugs on keyboard layouts and bugs on USB keyboards among the GRUB bugs at Savannah though. I find an e-mail to bug-grub concerning the same issue , but no bug at Savannah. I will not open a bug I suppose, also the GRUB manual says many keymaps don’t work well. https://www.gnu.org/software/grub/manual/grub/html_node/Internationalisation.html#Input-terminal It says “Own keyboard implementations (at_keyboard and usb_keyboard) supports any key but work on one-char-per-keystroke. So no dead keys or advanced input method. Also there is no keymap change hotkey. In practice it makes difficult to enter any text using non-Latin alphabet. Moreover all current input consumers are limited to ASCII.” f5961dd5854cec1ed9a41365836d63aa15256642 for usb keyboard was a bad commit (passphrase input was QWERTY, back then usb keyboard did not work at all in GRUB menu). Regards, Florian