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#15803: default-file-name-coding-system: utf-8 better than latin-1 these days? Date: Fri, 11 Sep 2020 14:05:26 +0300 Message-ID: <83h7s4h8uh.fsf@gnu.org> References: <708ten8bam.fsf@fencepost.gnu.org> <83shcu3mtf.fsf@gnu.org> <83y3mdwo0a.fsf@gnu.org> <87imcn9jmq.fsf@gnus.org> <835z8nknar.fsf@gnu.org> <87r1r97pbz.fsf@gnus.org> <835z8lk85y.fsf@gnu.org> <87imck1t1g.fsf@gnus.org> 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="29057"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rgm@gnu.org, 15803@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 11 13:06:12 2020 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 1kGgsd-0007TY-JQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Sep 2020 13:06:11 +0200 Original-Received: from localhost ([::1]:39122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGgsc-0003ww-Gk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Sep 2020 07:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGgsU-0003tm-Tv for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2020 07:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGgsU-000650-J2 for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2020 07:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGgsU-0008IE-EC for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2020 07:06: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: Fri, 11 Sep 2020 11:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15803 X-GNU-PR-Package: emacs Original-Received: via spool by 15803-submit@debbugs.gnu.org id=B15803.159982234331841 (code B ref 15803); Fri, 11 Sep 2020 11:06:02 +0000 Original-Received: (at 15803) by debbugs.gnu.org; 11 Sep 2020 11:05:43 +0000 Original-Received: from localhost ([127.0.0.1]:42623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGgsA-0008HV-Pi for submit@debbugs.gnu.org; Fri, 11 Sep 2020 07:05:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGgs8-0008HI-0M for 15803@debbugs.gnu.org; Fri, 11 Sep 2020 07:05:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59267) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGgs2-0005tJ-OJ; Fri, 11 Sep 2020 07:05:34 -0400 Original-Received: from [176.228.60.248] (port=4249 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kGgry-0002QS-HL; Fri, 11 Sep 2020 07:05:31 -0400 In-Reply-To: <87imck1t1g.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 11 Sep 2020 12:55:55 +0200) 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:187812 Archived-At: > From: Lars Ingebrigtsen > Cc: rgm@gnu.org, 15803@debbugs.gnu.org > Date: Fri, 11 Sep 2020 12:55:55 +0200 > > Eli Zaretskii writes: > > >> All the tools under Linux are so utf-8-focused these days... let's > >> see... I first, under a utf-8 locale created the directory "émacs", > >> then converted it to 8859-1: > > > > No, please create the directory with non-ASCII name _after_ switching > > the locale to Latin-1. > > Shouldn't the result be the same? I.e., a name with iso-8859-1 name? No, because the Linux file I/O APIs are encoding-agnostic, they will (AFAIK) create the directory with a name that is the exact byte stream that you type at the mkdir command (or at the Emacs make-directory). > The reason I did it this convoluted name was just that I couldn't > convince my system to make a 8859 name even after changing the locale. > That is, when I typed Alt-gr ' e, my terminal still sent over two bytes > (i.e., in utf-8) instead of a single-byte é. Try doing this in Emacs, and use one of the Latin input methods if the keyboard doesn't cooperate. > But I think I know why "make check" was failing: > > [larsi@stories ~/src/emacs/trunk]$ echo $LANG > sv_SE.ISO-8859-1 > [larsi@stories ~/src/emacs/trunk]$ echo $LANG > en_US.UTF-8 I don't understand this: 2 identical commands one after the other yield different results? > The tests that were failing all talked about "chmod" and stuff, so I'm > guessing they were from a sub shell, and my system is apparently forcing > all new shells to use UTF-8... Really? So there's no way to change the locale to something non UTF-8? > make check: > > >>Error occurred processing lisp/eshell/eshell-tests.el: File is missing (("Doing chmod" "No such file or directory" "/home/larsi/src/emacs/f\303\263o/test/lisp/eshell/eshell-tests.elcgtybBC")) > > This time over, the directory is "fóo" (in latin-1), and that looks like > Emacs is trying to find the utf-8 version of the file name. If that's the case, then we lack ENCODE_FILE (or more generally don't encode a file name) somewhere. > So it looks like the patch set has problems, and needs further fixes. > (Or "make check" has some problems here, since Emacs otherwise seems to > work fine.) We could also just install the changes and wait for bug reports, on the assumption that the problems you see aren't real. Your call.