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 22:41:15 +0000 Message-ID: <87v8q1cum4.fsf@jonreeve.com> 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> 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="31932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Andreas Schwab , 57531@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 06 00:42:10 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 1oVKnC-00087L-CR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 00:42:10 +0200 Original-Received: from localhost ([::1]:33262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVKnB-0003Se-52 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 18:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVKn4-0003S5-Mh for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 18:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVKn4-000709-EU for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 18:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVKn4-00057m-4Z for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 18:42:02 -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 22:42: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.166241769319664 (code B ref 57531); Mon, 05 Sep 2022 22:42:02 +0000 Original-Received: (at 57531) by debbugs.gnu.org; 5 Sep 2022 22:41:33 +0000 Original-Received: from localhost ([127.0.0.1]:49117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVKmb-000575-4M for submit@debbugs.gnu.org; Mon, 05 Sep 2022 18:41:33 -0400 Original-Received: from mail-4317.proton.ch ([185.70.43.17]:36199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVKmZ-00056t-VY for 57531@debbugs.gnu.org; Mon, 05 Sep 2022 18:41:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonreeve.com; s=protonmail3; t=1662417684; x=1662676884; bh=XvloSyJSnDHZ01YNhVdMxyeM/mvf49JCHv+9p1YQX6w=; 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=ogYtbjAJdmXmryotlEIUY8dzQwYtI8sZROvYmnHWBet3Y8DboBwApvpg35T2iwQ6n iNfAZOjBgjP/opITkzIMVa1FP9pXOPghRlk+xoOKqntiRfXFpnmL2TixPw9JBl819x PA83ZvvgBsLbo9EUyE2z6XlHFggMY5I6kMRq0rWTlTAzFcS+XtmNwblNNEJgrG3vw9 9NMiKxQoGwrA99de7nPFE6ipw9AIorbVZpWonp4y79opp2mseLjNQN4wMDk1zfI+9k mXcsikFL3e9dCHrD6gFk0hx+MPepcUzHeKAIDW6QqgNyBkfy6FPjtGbb0UIJC3N35T wsanNArip61Rg== In-Reply-To: <0b2303e3927b42b437ad@heytings.org> 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:241604 Archived-At: =E2=80=9CGregory Heytings=E2=80=9D writes: > Well, =E2=80=9Ceo.UTF-8/UTF-8=E2=80=9D is indeed not a supported locale. = Why did you > include it in your configuration? =E2=80=9Ceo.UTF-8=E2=80=9D (without a = =E2=80=9C/UTF-8=E2=80=9D) is > definitely supported by glibc. What do you get if you configure it like > this: > > i18n =3D { defaultLocale =3D =E2=80=9Ceo.UTF-8=E2=80=9D; }; > > ? Well, this is getting into the weeds a bit about NixOS, and isn=E2=80=99t r= eally relevant here, but just to humor you, configuring it like that result= s in the same error. Look at [the documentation for supportedLocales] and [= the documentation on defaultLocale], in particular their examples. = =E2=80=9Ceo.UTF-8/UTF-8=E2=80=9D is the way they want you to write that in = `supportedLocales'. You can also [check out the way it=E2=80=99s implemente= d], which involves normalizing those locale strings such that they match th= e ones provided by glibc. > >> >> FWIW, my system doesn=E2=80=99t have the obsolete X11 locale.alias file,= and I >> don=E2=80=99t use X11. >> > > Then I guess Emacs doesn=E2=80=99t use it, which is why your suggested fi= x 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 use at all, period. And whether or not you use X11 has no= thing to do with whether or not you use Debian. The fix I=E2=80=99m suggest= ing would work equally as well on Debian as NixOS, or any Linux-based syste= m, since they use the same system for locales. But don=E2=80=99t take my wo= rd for it. Try it yourself. >> >> So it seems to me transparently clear that the encoding for the `eo= =E2=80=99 >> locale is UTF-8, and yet somehow emacs has its own, separate opinions, >> which don=E2=80=99t seem to be based on fact. >> > > The story is a bit more complex than that, as you may have seen in the > previous messages in this thread. If there=E2=80=99s a reason that Emacs needs to maintain its own locale/cha= rset mapping, separate and different from that of the system, I=E2=80=99m a= ll ears. But to me it looks unnecessary and causes errors, like the one I= =E2=80=99m trying to report here. [the documentation for supportedLocales] [the documentation on defaultLocale] [check out the way it=E2=80=99s implemented]