From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonathan Reeve Newsgroups: gmane.emacs.bugs Subject: bug#57531: 28.1; Character encoding missing for "eo" Date: Mon, 05 Sep 2022 17:50:01 +0000 Message-ID: <87y1uxd83r.fsf@jonreeve.com> References: <87h71r0w5z.fsf@jonreeve.com> <83v8q3li60.fsf@gnu.org> <87wnajzj6z.fsf@linux-m68k.org> <0b2303e3924bf00b49d2@heytings.org> <0b2303e392fb4ac7f236@heytings.org> <83bkrukq1f.fsf@gnu.org> <0b2303e392221b7deeaf@heytings.org> <83zgfej9fy.fsf@gnu.org> <87pmg94v5g.fsf@igel.home> Reply-To: Jonathan Reeve Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25666"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 57531@debbugs.gnu.org, Gregory Heytings To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 05 19:51:12 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 1oVGFb-0006V7-RZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 19:51:12 +0200 Original-Received: from localhost ([::1]:56302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVGFa-0001FX-Rj for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 13:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVGFS-0001FO-ED for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 13:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVGFS-0005vq-3f for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 13:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVGFR-0005hq-RC for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 13:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Reeve Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Sep 2022 17:51:01 +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.166240021821870 (code B ref 57531); Mon, 05 Sep 2022 17:51:01 +0000 Original-Received: (at 57531) by debbugs.gnu.org; 5 Sep 2022 17:50:18 +0000 Original-Received: from localhost ([127.0.0.1]:48766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVGEk-0005gf-4j for submit@debbugs.gnu.org; Mon, 05 Sep 2022 13:50:18 -0400 Original-Received: from mail-4018.proton.ch ([185.70.40.18]:61527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVGEh-0005gJ-TS for 57531@debbugs.gnu.org; Mon, 05 Sep 2022 13:50:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonreeve.com; s=protonmail3; t=1662400208; x=1662659408; bh=nGugefdeyFVwY+w7SksOPB9HVj204frdczUXl3RbOyA=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=hTyGalbp5j96gb23qP6y9gPZiuSdGZg9S7vli0l0cK6M5AcVdifQnPMBxAbS36V2Q Zu3sywB9anG8A5fRYh/538a3txFi9TFLxU/6DlFvND95Ql0sNyywUszQVYE9UqtfIX BYGb/a9KTqyPFkaiXzxOkyO29Ne/xgoUwNscwXGH4LzzxBS1dYvgPH1fbaXHAmgv9X WFIJu6q31J8cHVqehQAASl1e8NVSLxZ+EYBm/pVwJfO1KVRlUl7ASlyIw/IVxy1ha5 Ib03tXwHUQ0MUrD4XhFuFy5k4mAUBsn4hukSZliP3iHrrQ7bECIlNepTwf941KRwMs NmUkdfPmKZvCw== In-Reply-To: <87pmg94v5g.fsf@igel.home> Feedback-ID: 35010347:user:proton 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:241577 Archived-At: In my case, on NixOS, the system only supports glibc locales. [The nix conf= iguration option for locales] says this: List of locales that the system should support. The value =E2=80= =9Call=E2=80=9D means that all locales supported by Glibc will be installed= . A full list of supported locales can be found at . And if you try to do it anyway, for instance, with this configuration: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 i18n =3D { =E2=94=82 defaultLocale =3D "eo.UTF-8"; =E2=94=82 supportedLocales =3D [ "eo.UTF-8/UTF-8" "eo/UTF-8" "en_US.UTF= -8/UTF-8" ]; =E2=94=82 }; =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 you=E2=80=99ll end up getting an error like this: Error: unsupported locales detected: eo.UTF-8/UTF-8 \ You should choose from the list above the error. The =E2=80=9Clist above the error=E2=80=9D is the same list from [the full = list of supported locales], and doesn=E2=80=99t include `eo.UTF-8' or `eo.u= tf-8'. So on my system, at least, there is effectively no separate `eo.UTF-8' loca= le. Nor would you need one, since the `eo' locale is UTF-8. FWIW, my system doesn=E2=80=99t have the obsolete X11 locale.alias file, an= d I don=E2=80=99t use X11. But if there=E2=80=99s one thing I can ascertain, just from using my system= , is that it works just as expected everywhere (terminals, other programs),= and characters are displayed fine everywhere (e.g., in UTF-8, as they shou= ld be) /except in emacs/. The emacs terminal, especially, displays characte= rs incorrectly. Here=E2=80=99s the output of `locale charmap': =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 $ LANG=3Deo locale charmap =E2=94=82 UTF-8 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 So it seems to me transparently clear that the encoding for the `eo' locale= is UTF-8, and yet somehow emacs has its own, separate opinions, which don= =E2=80=99t seem to be based on fact. Changing the default emacs encoding won=E2=80=99t break backwards compatibi= lity so much as it will fix a long-standing mistake. =E2=80=9CAndreas Schwab=E2=80=9D writes: > On Sep 05 2022, Eli Zaretskii wrote: > >> Is that because locale.alias comes from X11 > > Nothing else uses that file. [The nix configuration option for locales] [the full list of supported locales]