GNU bug report logs - #40456
Invalid keyboard layouts pass through

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Sun, 5 Apr 2020 21:00:02 UTC

Severity: important

To reply to this bug, email your comments to 40456 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#40456; Package guix. (Sun, 05 Apr 2020 21:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 05 Apr 2020 21:00:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: Invalid keyboard layouts pass through
Date: Sun, 05 Apr 2020 22:59:28 +0200
Hello,

After a painful debugging session where I was blaming GDM for not using
the right keyboard layout, I found that I had specified an invalid
keyboard layout variant, as in:

  (keyboard-layout "fr" "does-not-exist")

‘ckbcomp’ would build a layout for the console just fine, only with a
warning.  Xorg would switch to the default “fr” layout (which exists)
and ignore the “does-not-exist” variant.

However, GNOME Shell would reject it in ‘keyboardManager.js’ because:

     [found, , , _layout, _variant] = this._xkbInfo.get_layout_info(id);

returns ‘found = false’ since ‘fr+does-not-exist’ is not found, and thus
goes on to use the US layout:

      if (found)
          return { layout: _layout, variant: _variant };
      else
          return { layout: DEFAULT_LAYOUT, variant: DEFAULT_VARIANT };

(This is just for GNOME Shell because again, Xorg itself installs the
“fr” layout, as can be seen if you start ratpoison or similar.)

Long story short: it would be great if invalid keyboard layouts were
caught when the system is instantiated.  It could be ‘ckbcomp’ errorring
out, or we could have additional code that browses xkeyboard-config’s
‘base.xml’ file.

Ludo’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 19 Sep 2020 08:42:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#40456; Package guix. (Thu, 04 Mar 2021 17:03:02 GMT) Full text and rfc822 format available.

Message #10 received at 40456 <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire via web <issues.guix.gnu.org <at> elephly.net>
To: 40456 <at> debbugs.gnu.org
Subject: Invalid keyboard layouts pass through
Date: Thu,  4 Mar 2021 18:01:39 +0100
We could listen from the WARNING: string on stderr of ckbcomp, or that dirty pipeline return 1 with an incorrect variant « setxkbmap -print fr foo | xkbcomp - -C »





Information forwarded to bug-guix <at> gnu.org:
bug#40456; Package guix. (Fri, 06 Dec 2024 17:21:02 GMT) Full text and rfc822 format available.

Message #13 received at 40456 <at> debbugs.gnu.org (full text, mbox):

From: Suhail Singh <suhailsingh247 <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 40456 <at> debbugs.gnu.org
Subject: Re: bug#40456: Invalid keyboard layouts pass through
Date: Fri, 06 Dec 2024 12:19:22 -0500
Ludovic Courtès <ludo <at> gnu.org> writes:

> Long story short: it would be great if invalid keyboard layouts were
> caught when the system is instantiated.  It could be ‘ckbcomp’ errorring
> out, or we could have additional code that browses xkeyboard-config’s
> ‘base.xml’ file.

Ludo, this issue currently has the debbugs usertag "v1.3.0".  Is that
usertag still applicable?

-- 
Suhail




This bug report was last modified 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.