From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57531: 28.1; Character encoding missing for "eo" Date: Sat, 03 Sep 2022 17:47:59 +0300 Message-ID: <8335d8o6ow.fsf@gnu.org> References: <87h71r0w5z.fsf@jonreeve.com> <83h71qqq5e.fsf@gnu.org> <878rn1p7oz.fsf@jonreeve.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57531@debbugs.gnu.org To: Jonathan Reeve Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 03 16:49:23 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 1oUUSZ-0006nG-H0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 16:49:23 +0200 Original-Received: from localhost ([::1]:35582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUUSY-0003j5-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 10:49:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUUSK-0003il-U3 for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 10:49:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUUSE-000208-6z for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 10:49:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUUSE-0005MX-3c for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Sep 2022 14:49: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.166221651520574 (code B ref 57531); Sat, 03 Sep 2022 14:49:02 +0000 Original-Received: (at 57531) by debbugs.gnu.org; 3 Sep 2022 14:48:35 +0000 Original-Received: from localhost ([127.0.0.1]:42600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUURn-0005Ll-91 for submit@debbugs.gnu.org; Sat, 03 Sep 2022 10:48:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUURk-0005LW-D4 for 57531@debbugs.gnu.org; Sat, 03 Sep 2022 10:48:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUURe-0001w7-8q; Sat, 03 Sep 2022 10:48:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=HjUOJCCkmGo3rTRy3JARJIsliJYsWomAmJIty8+L4QM=; b=LhNKrSMukOhqG+7JrA77 EcoJRKz1CfzjBsZjuGLV1VWuF+3t6agbsp6vTDA6cwCM/m5fmuCm/CE6022EVGvNKNLxdlu0ZxloJ gZ/s3bcztQQyVDUVQS2FMc5NeQGdI4nCGHXUfdoMqj/tqFE0mSEJ9BWB/oJm17fYZAY0iTNunUVlG IeUl5L7L4kLQVuLEnL9rBHmfk7Fvt+3cSODpiuhdH4FsV4rhf3m2t8qqZ4iLTZqANjUBkq2FrULyh K7Gl5074MBKhJyIvUhiYC5IBF5IJgDSj2TwbX6k7/lRz3LHagPUfticiNGR3ql4N6WGogvdbnpaLQ QrwFVvC9fMo2hg==; Original-Received: from [87.69.77.57] (port=1660 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUURd-0007NS-M6; Sat, 03 Sep 2022 10:48:26 -0400 In-Reply-To: <878rn1p7oz.fsf@jonreeve.com> (message from Jonathan Reeve on Sat, 03 Sep 2022 01:28:56 +0000) 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:241412 Archived-At: > Date: Sat, 03 Sep 2022 01:28:56 +0000 > From: Jonathan Reeve > Cc: 57531@debbugs.gnu.org > > “Eli Zaretskii” writes: > > > Can you tell what is the default encoding in that case? > > It looks like it’s `iso-latin-3', which is not working, since all my unicode characters get mangled. See [the screenshot in this question of mine on StackExchange.] The characters in that post are supported by Latin-3, and I had no problem saving them. > > If you want the UTF-8 encoding to be the default, why is your locale > > set to “eo” and not to “eo.UTF-8”? > > There is no eo.UTF-8 locale available to the system, as you can see [from the glibc documentation]. The “eo” locale is actually UTF-8, however. It’s interpreted as such just fine, across my whole system, except for in the emacs terminal, where it gets interpreted as `iso-latin-3'. That's okay, but then all you need to say in Emacs is (prefer-coding-system 'utf-8) Put that in your init file, and see if your problem with non-ASCII characters is fixed. > > Are you saying that the Esperanto locale _must_ use UTF-8? If so, > > why? AFAIK, ISO-8859-3 covers the Esperanto characters, so UTF-8 is > > not the only possible codeset for Esperanto locales. > > If you look at that glibc document, you’ll see that the “eo” locale is actually UTF-8. Unlike `en_US', which has variants like `en_US.UTF-8' which is UTF-8 and `en_US' which is ISO-8859-1, there is only `eo/UTF-8', i.e., `eo' which is UTF-8. I don't 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'd prefer not changing the default for everyone. Thanks.