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: Sat, 03 Sep 2022 16:54:52 +0000 Message-ID: <877d2kpfe1.fsf@jonreeve.com> References: <87h71r0w5z.fsf@jonreeve.com> <83h71qqq5e.fsf@gnu.org> <878rn1p7oz.fsf@jonreeve.com> <8335d8o6ow.fsf@gnu.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="16492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57531@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 03 18:57:26 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 1oUWSU-00047y-8h for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 18:57:26 +0200 Original-Received: from localhost ([::1]:59420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUWST-0007dM-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 12:57:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUWRH-0006Ab-0m for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 12:56:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUWRG-0004mB-O2 for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 12:56:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUWRG-0004gk-Kq for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 12:56:10 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Reeve Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Sep 2022 16:56:10 +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.166222410617605 (code B ref 57531); Sat, 03 Sep 2022 16:56:10 +0000 Original-Received: (at 57531) by debbugs.gnu.org; 3 Sep 2022 16:55:06 +0000 Original-Received: from localhost ([127.0.0.1]:42830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUWQE-0004Zt-G6 for submit@debbugs.gnu.org; Sat, 03 Sep 2022 12:55:06 -0400 Original-Received: from mail-40136.proton.ch ([185.70.40.136]:41751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUWQD-0004ZK-Gv for 57531@debbugs.gnu.org; Sat, 03 Sep 2022 12:55:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonreeve.com; s=protonmail3; t=1662224098; x=1662483298; bh=0k22Hy2GGG+L483ucUZQkAGrYqRp3JWiiDb6yCssa4Y=; 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=ihfVvPi4SP3vSfK6KFP1H8Uegqe82NtD8cOiiMBOAcEqCenYvSE1l3BmXwfkB7y6b 2io3Y50Or4csxev5ciy0cSGvOIuclNN4Ln9rOwK0o4a0YzCsEAFZRKXAsGBs31RBNs wkm4fv9vruT3WX3IiAYZlDG6kPyTWuuIZeRLt74/FPasSCHtwXv4t5qPmoUveSN2ak wTICwGt/FgPEC6aLQXO29PtyWplFrZ3G1Sd9FYcOkOWm1GAV7ZmOw+LLtLJ5+wmrdV 8zcSdNsMOyBZrWfjNatVXYaPDIMYu3H1fcSkchPE9MqzpS6o2ulQy8+P9LgTGg5ZTQ KHE0gQFxb3jiQ== In-Reply-To: <8335d8o6ow.fsf@gnu.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:241430 Archived-At: > The characters in that post are supported by Latin-3, and I had no > problem saving them. It=E2=80=99s not about saving them, it=E2=80=99s about how they=E2=80=99re = displayed. If the rest of my system correctly uses unicode for the `eo' loc= ale, /because it=E2=80=99s a unicode locale,/ but emacs is the only one tha= t guesses it should be Latin-3 instead (for no reason that I can find), the= n it=E2=80=99s emacs which incorrectly handling this locale. > That=E2=80=99s okay, but then all you need to say in Emacs is > > (prefer-coding-system =E2=80=99utf-8) If emacs were really following system settings, it would set the encoding t= o utf-8 without needing extra customization from the user, since `eo' is a = UTF-8 locale. And incidentally, there=E2=80=99s no such locale as `eo.utf-8= ', from what I can tell. > I don=E2=80=99t know why glibc did that, and glibc-supported systems are = not > the only ones where we want to support Esperanto. So if the above > simple customization fixes your problem, I=E2=80=99d prefer not changing = the > default for everyone. It=E2=80=99s not about changing the default for everyone, it=E2=80=99s abou= t fixing an incorrect character encoding, making it so that emacs correctly= respects the locale=E2=80=99s character set. There=E2=80=99s no reason to = have the latin-3 character set, except for backwards compatibility, but tha= t=E2=80=99s irrelevant in the case of Esperanto, since I know of no program= , document, or anything else that would use latin-3 for Esperanto. Since th= e locale for Esperanto is a relatively new invention, it doesn=E2=80=99t ha= ve the same history of legacy character encodings as a language like Englis= h. In fact, not even emacs seems to define it as such, judging from this line = in `locale-language-names': `("eo" . "Esperanto")'. It just seems as if the= author of that variable didn=E2=80=99t know what character set to assign, = and left it blank.