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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Ludovic Courtès <ludo@HIDDEN>; dated Sun, 5 Apr 2020 21:00:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 40456 <at> debbugs.gnu.org:


Received: (at 40456) by debbugs.gnu.org; 6 Dec 2024 17:20:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 06 12:20:42 2024
Received: from localhost ([127.0.0.1]:44171 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tJc0P-0004Jp-PT
	for submit <at> debbugs.gnu.org; Fri, 06 Dec 2024 12:20:42 -0500
Received: from mail-qt1-f196.google.com ([209.85.160.196]:48340)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <suhailsingh247@HIDDEN>) id 1tJc0N-0004JZ-Ld
 for 40456 <at> debbugs.gnu.org; Fri, 06 Dec 2024 12:20:40 -0500
Received: by mail-qt1-f196.google.com with SMTP id
 d75a77b69052e-466a0ac9211so24255651cf.0
 for <40456 <at> debbugs.gnu.org>; Fri, 06 Dec 2024 09:20:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1733505574; x=1734110374; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=gxCnOqaWvYaA6Q9Xs2hFDXW43tzwnSzC3ulLwaJCb7Q=;
 b=U6KxbFVD3tgWdIv0PWxnxqo6/m1TgocQSAwdqCGLICpGEA7g4+vL4xgj7MCun4s13g
 mOFNZc++GX/0T9YZBBBAj1nboygxToZSqj/bC2k/JrtgZPjLHirciui+IFGqp7XBmWg6
 vzmm/NAwCSO2/w0jZXXKxSHKftTAzuU7pJyH+JV86X/bSq7YzDHoR0W3llJXhjrcj7B6
 XGAHsmDD+eBQcgT9mVtOxc7z6NNIBa/axxq8afYQM+/PxWQx9ojMVZz1kqlrleVyeirV
 fnOC7puBP79xgZqa6A0u8ffG8ZYBgT+XbjhyHvhkADqQZ3T5dN62SA5NNsM45u2LWKCY
 Iz6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1733505574; x=1734110374;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=gxCnOqaWvYaA6Q9Xs2hFDXW43tzwnSzC3ulLwaJCb7Q=;
 b=Udfu3SxIWl6dcfQxSDqyNyYuwlLzPTrJARO5LQJT2hJXHMBy+QY1FAcTtCi8jo1w+p
 2a3KEHLRTgU/50nKwG73LUPufEUSbbNscNogZaOvqW4OOySOcXtEqiCbQRXQZRMrKkxn
 rxZs/Qb/JV1P/5TeOYiaMrKarPbWKpcBTDhOxN9sjza1jcL2zTU/bDqoF+D+FNrDCSeS
 J3/iZuKdmh0L1R4tsEHx51+//BMaSnX6ypfaXr+bSHlE1tmfAdkrWq8c1oWQ0TV5yr0P
 hOl9yHdkpHCgJu8VanfQWcxHd+ienQH83tKJgzuysnu6LXxvs86l7ZjB0ptVQs3t1nyE
 vORA==
X-Gm-Message-State: AOJu0YyHWHL7rt43pgAkTgDmWSoNJsrKZNEUd58iT8U2HLJgH82uU0Or
 LOQ1ZpoaJneHJiB20DlYiPPh8CGXv+1lNWE/qMnsA/0KADmmEr7Bpl4nTZBM
X-Gm-Gg: ASbGnctpJgnA/qUspJt2YKZ1HlRltGrJSc0uKvmxmzB0jnhG8f7riIY7GciqZINsZdV
 DjwbDgrIywknHFvurzDY0jq8R+B5TsL5jQ/N0jABFinhUdEgmz9po8XUBeNhWr4O+gWQfqjOlR3
 Tz+v4Wypz/nhlsryiXOyffyTcLJxM6qLjo65KT1l4wWF6ts2/Ojd2mcosvQubc2WWVBrvhWY79E
 DD22SQbRzjTFsjhHcDUlXxbZEMzZJ7p9LHvxPbcL0Q9/A==
X-Google-Smtp-Source: AGHT+IHXcaN1YPd1aAW5NNsP+X5IXFALxCHKDPJCoiJSlmW5REEIoakPUpGVM6lzHnOfaWcmCZJonw==
X-Received: by 2002:a05:622a:1191:b0:461:5c0b:aa40 with SMTP id
 d75a77b69052e-46734f81579mr55393841cf.46.1733505573706; 
 Fri, 06 Dec 2024 09:19:33 -0800 (PST)
Received: from gnus ([70.26.179.129]) by smtp.gmail.com with ESMTPSA id
 d75a77b69052e-4672969e353sm23058771cf.14.2024.12.06.09.19.33
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 06 Dec 2024 09:19:33 -0800 (PST)
From: Suhail Singh <suhailsingh247@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#40456: Invalid keyboard layouts pass through
In-Reply-To: <87zhbphcnj.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?=
 =?utf-8?Q?'s?= message of "Sun, 05 Apr 2020 22:59:28 +0200")
References: <87zhbphcnj.fsf@HIDDEN>
Date: Fri, 06 Dec 2024 12:19:22 -0500
Message-ID: <87wmgczq3p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 40456
Cc: 40456 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

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

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

--=20
Suhail




Information forwarded to bug-guix@HIDDEN:
bug#40456; Package guix. Full text available.

Message received at 40456 <at> debbugs.gnu.org:


Received: (at 40456) by debbugs.gnu.org; 4 Mar 2021 17:02:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 12:02:14 2021
Received: from localhost ([127.0.0.1]:60039 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHrMc-0001s8-B2
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 12:02:14 -0500
Received: from sender4-of-o56.zoho.com ([136.143.188.56]:21667)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <issues.guix.gnu.org@HIDDEN>) id 1lHrMa-0001rz-8B
 for 40456 <at> debbugs.gnu.org; Thu, 04 Mar 2021 12:02:13 -0500
ARC-Seal: i=1; a=rsa-sha256; t=1614877324; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=YWihl6bOXntX8qFw1sXGJWLLWtBU0a50XjZWA7pE3JOli3WX94yJAmRkg9qhFezvO84zxrZBeQs5WDTRd4tR3+//tGg5C9AKEAdF9dVHSA2wtHdQbGXMOZQQVz/N2eMJE/D8LFVG3FoHRNmz/vL1+3qAjXLo2rUQ7GfyfODTUvw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; 
 t=1614877324; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; 
 bh=EzKC4JCVrUu1Jtug18aS88GbW9LCvU8P0/HtJvQ4iWw=; 
 b=TYE976WRbhgAJ9fFFM1ru6wsjcnrZZj9yWw5Ww/ouK9vUWln2wGHQhb9fav/TGKQIXayWSf6Ma2FTjk2HQt98sDxtHuEzlmNEafw6PD3FsnLkZM/un71h6+ezIVpiUn3GxHVw7uKy6GoZidn7vFimcs9hkyPqs5g/X1FcZTdAoo=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=issues.guix.gnu.org@HIDDEN;
 dmarc=pass header.from=<issues.guix.gnu.org@HIDDEN>
 header.from=<issues.guix.gnu.org@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1614877324; 
 s=zoho; d=elephly.net; i=issues.guix.gnu.org@HIDDEN;
 h=MIME-Version:Content-Type:From:To:Date:Message-ID:Subject;
 bh=EzKC4JCVrUu1Jtug18aS88GbW9LCvU8P0/HtJvQ4iWw=;
 b=V+cgXZ86484RlJDzyIMBmqGa/xQwjkPAcT4EnQjpxaYIf69i9ljpvaeDu7p/YZjH
 kXjWy9rxiZhUX/f2oswQKYj9mfsI0N6ZhaPT8doYQmdi77oWnp0SK0QF8Fb6RlS18YK
 mvlHT4TY3PJS+1jXdpg2wgbfy63316M0QbmwYiwo=
Received: from localhost (22.68.10.185.ro.ovo.sc [185.10.68.22]) by
 mx.zohomail.com with SMTPS id 1614877310889287.29739208957994;
 Thu, 4 Mar 2021 09:01:50 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
From: Brice Waegeneire via web <issues.guix.gnu.org@HIDDEN>
To: 40456 <at> debbugs.gnu.org
Date: Thu,  4 Mar 2021 18:01:39 +0100
Message-ID: <7f9bd995bd40.8988a01ba6275e8@HIDDEN>
Subject: Invalid keyboard layouts pass through
X-ZohoMailClient: External
X-Spam-Score: 4.0 (++++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  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 » 
 
 Content analysis details:   (4.0 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [136.143.188.56 listed in list.dnswl.org]
  0.0 RCVD_IN_MSPIKE_H4      RBL: Very Good reputation (+4)
                             [136.143.188.56 listed in wl.mailspike.net]
  1.0 CTE_8BIT_MISMATCH      Header says 7bits but body disagrees
  0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
  3.0 AC_FROM_MANY_DOTS      Multiple periods in From user name
X-Debbugs-Envelope-To: 40456
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

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@HIDDEN:
bug#40456; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Apr 2020 20:59:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 05 16:59:35 2020
Received: from localhost ([127.0.0.1]:46702 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jLCMg-0000HF-Uj
	for submit <at> debbugs.gnu.org; Sun, 05 Apr 2020 16:59:35 -0400
Received: from lists.gnu.org ([209.51.188.17]:45434)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1jLCMf-0000H4-4w
 for submit <at> debbugs.gnu.org; Sun, 05 Apr 2020 16:59:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52158)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>) id 1jLCMe-0002mQ-2Z
 for bug-guix@HIDDEN; Sun, 05 Apr 2020 16:59:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43398)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1jLCMd-0003z3-Vt
 for bug-guix@HIDDEN; Sun, 05 Apr 2020 16:59:32 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39632 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1jLCMd-00047T-9T
 for bug-guix@HIDDEN; Sun, 05 Apr 2020 16:59:31 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Invalid keyboard layouts pass through
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 17 Germinal an 228 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sun, 05 Apr 2020 22:59:28 +0200
Message-ID: <87zhbphcnj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

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")

=E2=80=98ckbcomp=E2=80=99 would build a layout for the console just fine, o=
nly with a
warning.  Xorg would switch to the default =E2=80=9Cfr=E2=80=9D layout (whi=
ch exists)
and ignore the =E2=80=9Cdoes-not-exist=E2=80=9D variant.

However, GNOME Shell would reject it in =E2=80=98keyboardManager.js=E2=80=
=99 because:

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

returns =E2=80=98found =3D false=E2=80=99 since =E2=80=98fr+does-not-exist=
=E2=80=99 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
=E2=80=9Cfr=E2=80=9D layout, as can be seen if you start ratpoison or simil=
ar.)

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

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#40456; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

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