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: Mon, 05 Sep 2022 15:24:17 +0300 Message-ID: <83zgfej9fy.fsf@gnu.org> References: <87h71r0w5z.fsf@jonreeve.com> <83h71qqq5e.fsf@gnu.org> <878rn1p7oz.fsf@jonreeve.com> <8335d8o6ow.fsf@gnu.org> <877d2kpfe1.fsf@jonreeve.com> <83o7vwmlet.fsf@gnu.org> <875yi4p6se.fsf@jonreeve.com> <831qsrn1im.fsf@gnu.org> <875yi31v17.fsf@linux-m68k.org> <83v8q3li60.fsf@gnu.org> <87wnajzj6z.fsf@linux-m68k.org> <0b2303e3924bf00b49d2@heytings.org> <0b2303e392fb4ac7f236@heytings.org> <83bkrukq1f.fsf@gnu.org> <0b2303e392221b7deeaf@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35263"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jonathan@jonreeve.com, 57531@debbugs.gnu.org, schwab@linux-m68k.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 05 14:43:36 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 1oVBRv-0008vO-PX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 14:43:35 +0200 Original-Received: from localhost ([::1]:57028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVBRu-0002cT-Qs for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 08:43:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVB9y-0000Jg-Up for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 08:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVB9y-0003C2-LK for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 08:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVB9y-0007Lk-9P for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 08:25: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: Mon, 05 Sep 2022 12:25: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.166238069428230 (code B ref 57531); Mon, 05 Sep 2022 12:25:02 +0000 Original-Received: (at 57531) by debbugs.gnu.org; 5 Sep 2022 12:24:54 +0000 Original-Received: from localhost ([127.0.0.1]:46710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVB9p-0007LG-Lb for submit@debbugs.gnu.org; Mon, 05 Sep 2022 08:24:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVB9j-0007Kw-KD for 57531@debbugs.gnu.org; Mon, 05 Sep 2022 08:24:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50232) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVB9b-00039N-Dc; Mon, 05 Sep 2022 08:24:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BkG+7pjMDt82w7ZyZtBzc/RDSne3piTz9ZqjOz765BA=; b=NLTFyr+MVVU2 qOeQJb57sGJGMwhztOu0exGSewUuOl/F1ttQJCYIk4MVXQnpsfcMICxAZbrBywge76f3Ek/On3cYM TZbd5Khoyup1nBZyTHahPK31/zJk0uHSl6d8OcjK8n9xmVXa5ktLB8VCtfbrJtIcRtwfsck3DyX5L RCnEsh7WLzEmfPI7czA1TZbuTkx/KMU/UqdIZFME2hZIZ9cfzUnpAVDmY3+Hna0mSIkIPQU8CBOb7 m13kl6vuplmF+yje1qJfi0N32UQDT/XvEfb75jpfPtPZ2JTMc3Iu+kp0dJ82mrM7ATyPR/SXR0oHh laVaNHB9KCyiYrffAqM9rA==; Original-Received: from [87.69.77.57] (port=1811 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 1oVB9a-0005PQ-Mi; Mon, 05 Sep 2022 08:24:39 -0400 In-Reply-To: <0b2303e392221b7deeaf@heytings.org> (message from Gregory Heytings on Mon, 05 Sep 2022 12:00:12 +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:241557 Archived-At: > Date: Mon, 05 Sep 2022 12:00:12 +0000 > From: Gregory Heytings > cc: schwab@linux-m68k.org, jonathan@jonreeve.com, 57531@debbugs.gnu.org > > > But AFAIU locale.alias should have told Emacs which encoding is > > appropriate for "eo". > > If Emacs relies on locale.alias, Latin-3 will be chosen. The "eo" locale > follows what other locales do, without ".UTF-8" the legacy encoding is > used. E.g. "en_US" is Latin-1 here but "en_US.UTF-8" is UTF-8, and > likewise "tr_TR" is Latin-9 but "tr_TR.UTF-8" is UTF-8. Emacs looks in locale.alias before it uses the fallback info in language-info-alist. > > Andreas asked the OP what does locale.alias say about that, but I saw no > > response yet. > > > > What does "grep ^eo /usr/share/X11/locale/locale.alias" say on your > > system? > > > > eo eo_XX.ISO8859-3 > eo_XX eo_XX.ISO8859-3 > eo: eo_XX.ISO8859-3 > eo_XX: eo_XX.ISO8859-3 If this is what locale.alias says, doesn't it mean that the system wants us to use Latin-3 by default for this locale? IOW, why does nl_langinfo return a value that is different from what this file says? Is that because locale.alias comes from X11, not from glibc? In any case, unless we change the code in mule-cmds.el, as long as locale.alias says the above, what we say in language-info-alist about this locale doesn't matter. At least that's my reading of the code in mule-cmds.el.