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 20:12:58 +0300 Message-ID: <83o7vwmlet.fsf@gnu.org> References: <87h71r0w5z.fsf@jonreeve.com> <83h71qqq5e.fsf@gnu.org> <878rn1p7oz.fsf@jonreeve.com> <8335d8o6ow.fsf@gnu.org> <877d2kpfe1.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="13299"; 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 19:14: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 1oUWih-0003B2-Oh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 19:14:11 +0200 Original-Received: from localhost ([::1]:43144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUWig-0007Kq-Ct for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 13:14:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUWiY-0007Jq-D2 for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 13:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUWiY-0001Ha-4H for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 13:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUWiX-00058d-U9 for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 13:14:01 -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 17:14: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.166222521219704 (code B ref 57531); Sat, 03 Sep 2022 17:14:01 +0000 Original-Received: (at 57531) by debbugs.gnu.org; 3 Sep 2022 17:13:32 +0000 Original-Received: from localhost ([127.0.0.1]:42918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUWi4-00057k-2T for submit@debbugs.gnu.org; Sat, 03 Sep 2022 13:13:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUWi2-00057X-Dx for 57531@debbugs.gnu.org; Sat, 03 Sep 2022 13:13:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUWhx-0001E7-5H; Sat, 03 Sep 2022 13:13:25 -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=p3+LqPhMC7O89W8i12jiaELQ4lwvYzEpWb/fGsmmf9w=; b=TH6M5vMlU04clpWcfbA4 aVMHktpuKR2rditpA0Z9I1ibQ9OQCLbmYZBTgDJzMEnyZKVdPIDq8P/kYrqNTl8gjK76y/cK7b2JA U39Z8B4jrdamyXitnlTU5YVgYxyQPdGH63eK1+AkqoxzkM5YCjI0Xioww9Drj5tuztkM2iLcoS8BQ 4LVc0nN97w1fP+I7i2oBTCin6dd5npuAtcqub/ONGQaXyrpusuDNxEm8YpMiIlDOyj+/vrw3/RsAd huRw3jL0uQf4lI7F+FReEPQsWRKEQbjfFdi0hGkOjQSBCj9Sga/HJzCB4D77qKpNHVLMyHp8M4+8g Ff7EZQMkPAG+JQ==; Original-Received: from [87.69.77.57] (port=2612 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 1oUWhw-0008A9-Fo; Sat, 03 Sep 2022 13:13:24 -0400 In-Reply-To: <877d2kpfe1.fsf@jonreeve.com> (message from Jonathan Reeve on Sat, 03 Sep 2022 16:54:52 +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:241433 Archived-At: > Date: Sat, 03 Sep 2022 16:54:52 +0000 > From: Jonathan Reeve > Cc: 57531@debbugs.gnu.org > > > The characters in that post are supported by Latin-3, and I had no > > problem saving them. > > It’s not about saving them, it’s about how they’re displayed. I believe this is due to the fact that the text was saved in UTF-8, and Emacs was trying to decode it as if it were in Latin-3. Using the prefer-coding-system customization should fix that. > If the rest of my system correctly uses unicode for the `eo' locale, /because it’s a unicode locale,/ but emacs is the only one that guesses it should be Latin-3 instead (for no reason that I can find), then it’s emacs which incorrectly handling this locale. I disagree. I think your system doesn't tell Emacs enough to guess correctly. > > That’s okay, but then all you need to say in Emacs is > > > > (prefer-coding-system ’utf-8) > > If emacs were really following system settings, it would set the encoding to utf-8 without needing extra customization from the user, since `eo' is a UTF-8 locale. There's no evidence of "eo" being a UTF-8 locale, except what we see in glibc. Which is just one library on just one OS. > And incidentally, there’s no such locale as `eo.utf-8', from what I can tell. OK. I didn't say there were, I just assumed there could be. > > 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. > > It’s not about changing the default for everyone, it’s about fixing an incorrect character encoding, making it so that emacs correctly respects the locale’s character set. Emacs cannot know the system character set unless the system tells that. The way to tell that is via the locale's codeset. If that is impossible, the next best is for you to tell that to Emacs in your init file. I don't understand why you insist on not using the solution I proposed. Please try the solution I proposed, and if it doesn't work, let's see what else is needed. If you keep insisting on defaulting Esperanto to UTF-8, I see now way to make any progress here.