From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#57531: 28.1; Character encoding missing for "eo" Date: Mon, 05 Sep 2022 23:14:17 +0000 Message-ID: <0b2303e392194ab89b83@heytings.org> References: <87h71r0w5z.fsf@jonreeve.com> <0b2303e3924bf00b49d2@heytings.org> <0b2303e392fb4ac7f236@heytings.org> <83bkrukq1f.fsf@gnu.org> <0b2303e392221b7deeaf@heytings.org> <83zgfej9fy.fsf@gnu.org> <87pmg94v5g.fsf@igel.home> <87y1uxd83r.fsf@jonreeve.com> <0b2303e3927b42b437ad@heytings.org> <87v8q1cum4.fsf@jonreeve.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Ph2FKfXGXu" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andreas Schwab , 57531@debbugs.gnu.org To: Jonathan Reeve Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 06 01:15:34 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVLJV-0007ji-Fk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 01:15:33 +0200 Original-Received: from localhost ([::1]:42972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVLJU-000243-14 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 19:15:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVLJ1-00023p-46 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 19:15:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVLJ0-00035C-Qv for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 19:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVLJ0-0005wC-D8 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 19:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Sep 2022 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57531 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57531-submit@debbugs.gnu.org id=B57531.166241966222762 (code B ref 57531); Mon, 05 Sep 2022 23:15:02 +0000 Original-Received: (at 57531) by debbugs.gnu.org; 5 Sep 2022 23:14:22 +0000 Original-Received: from localhost ([127.0.0.1]:49129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVLIL-0005v4-Io for submit@debbugs.gnu.org; Mon, 05 Sep 2022 19:14:21 -0400 Original-Received: from heytings.org ([95.142.160.155]:56640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVLIJ-0005uu-0p for 57531@debbugs.gnu.org; Mon, 05 Sep 2022 19:14:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1662419657; bh=EQGoiE8w9ZKAxMZCU+9bkU4k1zlxeUy0/xbUf/d3L14=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Ds0cUGbm8FbUevSRpuSQWjgx+zHDSIx5J+A5b+/W5+vaWhPKLQDx8P697lFQ93t2z yugy6f6st/em7QF0GeUPaO3NI5YOySSR4xMBgbIVvVZ/ozsQdnkIz7RwyStPruSHa6 k+MPtoxFdiB29czcTLsuGy5z0pwZuIKdyuZmTmv/N4AzLd/eG3nM7eiVqfvvmbvmjg Lys2xKw08uxSuHcvNg05X/5JCH/DsBOtwwHfY+XMsrdgMlVRfvnDITAweaAeTMx/Md qlK+bL/dYRhbuHec2Xm+89LsL4yzqzhmkf7LZjgQZ6KxwoUjfLH4Dk+OdSscRs7GWy 2OouSmTu11aKA== In-Reply-To: <87v8q1cum4.fsf@jonreeve.com> Content-ID: <0b2303e3921a75b51f82@heytings.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241605 Archived-At: --Ph2FKfXGXu Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-ID: <0b2303e3928dd1975cb3@heytings.org> > > Well, this is getting into the weeds a bit about NixOS, and isn=E2=80=99t= really=20 > relevant here, but just to humor you, configuring it like that results=20 > in the same error. Look at [the documentation for supportedLocales] and= =20 > [the documentation on defaultLocale], in particular their examples.=20 > =E2=80=9Ceo.UTF-8/UTF-8=E2=80=9D is the way they want you to write that i= n=20 > `supportedLocales'. You can also [check out the way it=E2=80=99s implemen= ted],=20 > which involves normalizing those locale strings such that they match the= =20 > ones provided by glibc. > Then it sounds like it's a NixOS bug. As I said, eo.UTF-8 is definitely a= =20 valid locale, and is supported by glibc, so there is no reason that NixOS= =20 should reject it just because it's not present in some text file. You can= =20 try it: #include #include #define CHECK(L) if (!setlocale (LC_ALL, L)) printf ("invalid locale %s\n",= L); int main () { CHECK ("eo"); CHECK ("eo.UTF-8"); } >> Then I guess Emacs doesn=E2=80=99t use it, which is why your suggested f= ix=20 >> worked on NixOS but wouldn=E2=80=99t work on a Debian-based system. > > It=E2=80=99s an obsolete file, as has been pointed out upthread, so it=E2= =80=99s not in=20 > use at all, period. And whether or not you use X11 has nothing to do=20 > with whether or not you use Debian. The fix I=E2=80=99m suggesting would = work=20 > equally as well on Debian as NixOS, or any Linux-based system, since=20 > they use the same system for locales. But don=E2=80=99t take my word for = it. Try=20 > it yourself. > No, it's another one that is obsolete: /usr/share/locale/locale.alias is=20 obsolete, /usr/share/X11/locale/locale.alias is not, it has last been=20 updated on February 2nd. It is used at least by libx11 and by Emacs. And no, the fix you suggested does not work on Debian. I tried it myself,= =20 it has no effect whatsoever. When /usr/share/X11/locale/locale.alias is=20 present, the information it contains takes precedence over those in=20 locale-language-names. --Ph2FKfXGXu--