From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen 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:33:08 +0200 Message-ID: <87v9gkxzln.fsf@gnus.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> <83h7s4h8uh.fsf@gnu.org> <87een81rkv.fsf@gnus.org> <83een8h575.fsf@gnu.org> 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="20543"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rgm@gnu.org, 15803@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 11 14:35:01 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 1kGiGb-0005CR-A5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Sep 2020 14:35:01 +0200 Original-Received: from localhost ([::1]:48154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGiGa-0005HD-Ce for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Sep 2020 08:35:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGiFe-0004Em-Di for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2020 08:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGiFe-0001AB-38 for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2020 08:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGiFe-0006St-0h for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2020 08:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Sep 2020 12:34:01 +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.159982760024779 (code B ref 15803); Fri, 11 Sep 2020 12:34:01 +0000 Original-Received: (at 15803) by debbugs.gnu.org; 11 Sep 2020 12:33:20 +0000 Original-Received: from localhost ([127.0.0.1]:42831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGiEy-0006Ra-3V for submit@debbugs.gnu.org; Fri, 11 Sep 2020 08:33:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:50748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGiEw-0006RM-MN for 15803@debbugs.gnu.org; Fri, 11 Sep 2020 08:33:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=32fosGp+1Vna6dtg384IXUwhyrpR6qiPd8cCNGvrLE8=; b=u3MO5+8+zjX5mQtfzHOdsiPH/T DbesDil4RLW/w7V061qZC7zc/UTjHfsSGv6v6nFYFr0Sh3bBNuZjbf2cxrbM8TIpR1VI12XkDIjKk r0dY4p5xeaaFapHTY7WJcvivKoPTqyKtR9F42bmrd9cBFSx2IeZgElSG8moPMCx5IIV4=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGiEn-00022k-H0; Fri, 11 Sep 2020 14:33:12 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEUMCQckKCFbXFjN 0s2doJyAm38xYxxIii/////FnjXSAAAAAWJLR0QIht6VegAAAAd0SU1FB+QJCwwOAXuO8jgAAAGt SURBVDjLtZNBr5wgEMcZtT0zT59nBTa9tq5urwra88s+d/f6vOC5TQpfv7DdvABteuskQJwf/5lh EEII/jbmpxaRkncD73p8h/5/WsYbwh76JgSyeClG58woKcNgHz57DctKRpkIBflIpKqELLngKehy 3ihezSUPQdGB4mq+lMotUXJ1djVRCgQA4nJL+cUt7I/j8bz1wA+MgMhnFGw4STmxWJKraj0Np2Ho hhhUufo29MPXruNx8p4dh2VZbre5jRVI1fWqvaWF4fNy1dYaqyM3EPS7rbNYgljf3bvZMAGod6vT /f7W6107YPY3SIA2DhiXZ4MEbFojaLuhjsG9d7V2fh0n9/NHg6Q2YX6Ae5Ha4Xo3NFLQR0z9d1D7 00T1wrvfmuSITgL3Zn2PuwsbBa3Nbj+9xaCtt911xP6wcbeeWl+P3S/nJNJKni+39ecyy+QGJchZ vc7yOCWp+7WfuRq645iAVSI+sVZMSaSsQTd8DSRJMbVE+taMQEMNdJX7o2E6y0WwMH1ZuhBjJqW4 HOZQUbKeFn13EJId4hfl3xJSJMkpHlY0gpL/YL8AJH1codXpGjkAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjAtMDktMTFUMTI6MTQ6MDErMDA6MDBoUIHOAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA5 LTExVDEyOjE0OjAxKzAwOjAwGQ05cgAAAABJRU5ErkJggg== X-Now-Playing: Laraaji & Lyghte's _Celestial Realms_: "Equinox" In-Reply-To: <83een8h575.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Sep 2020 15:24:14 +0300") 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:187825 Archived-At: Eli Zaretskii writes: > So if you found that the problem reveals itself in set-file-modes, > let's see what happens there. The relevant code is this: Yeah, I don't think that function is the problem in itself, but I don't know where the problem originates either. >> foo: "\"/home/larsi/src/emacs/f\\363o/test/lisp/eshell/eshell-tests.elc\= "" >>=20 >> which seems to be correct, > > Where does the "foo:" printout comes from? I wouldn't expect to see > Latin-1 encoded strings inside Emacs, not normally anyway. I just added a bunch of (message "foo: %S" variable) here and there in byte-compile-file to watch how the passed-in string is transformed.=20 >> (tempfile >> (make-temp-file (expand-file-name target-file))) >>=20 >> is >>=20 >> "#(\"/home/larsi/src/emacs/f=C3=B3o/test/lisp/eshell/eshell-tests.elcnjD= FYY\" 0 65 (charset iso-8859-1))" > > I see nothing wrong here: this is how decoding works in Emacs. And > again, how did you produce this string? As I explained above, the > details of how you display these strings matter in this case. Same way as above. The file name is on the "f\\363o/test" form until make-temp-name, and then it turns into a different string with a text property. But I don't know how much this is an artefact of how Emacs prints these things and how much it's actually, er... actual. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no