From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30755: 25.3; Encoding of load-file-name wrong when path to working dir does not contain accented letter Date: Fri, 09 Mar 2018 15:46:03 +0200 Message-ID: <836065weec.fsf@gnu.org> References: <5aa26e5f.d05b1c0a.10214.5e41@mx.google.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1520603159 712 195.159.176.226 (9 Mar 2018 13:45:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2018 13:45:59 +0000 (UTC) Cc: 30755@debbugs.gnu.org To: =?UTF-8?Q?M=C3=A1rton?= Marczell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 14:45:55 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euILJ-0008VA-5W for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 14:45:53 +0100 Original-Received: from localhost ([::1]:45395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euINM-0000d6-3R for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 08:48:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euIMT-0008Ud-3w for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 08:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euIMQ-0004b8-0v for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 08:47:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43983) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euIMP-0004b4-Sq for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 08:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1euIMP-0006lC-Iz for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 08:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Mar 2018 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30755-submit@debbugs.gnu.org id=B30755.152060317625926 (code B ref 30755); Fri, 09 Mar 2018 13:47:01 +0000 Original-Received: (at 30755) by debbugs.gnu.org; 9 Mar 2018 13:46:16 +0000 Original-Received: from localhost ([127.0.0.1]:51880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euILg-0006k6-I3 for submit@debbugs.gnu.org; Fri, 09 Mar 2018 08:46:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euILf-0006jt-8e for 30755@debbugs.gnu.org; Fri, 09 Mar 2018 08:46:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euILW-00049k-Uu for 30755@debbugs.gnu.org; Fri, 09 Mar 2018 08:46:10 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euILW-00049f-Qj; Fri, 09 Mar 2018 08:46:06 -0500 Original-Received: from [176.228.60.248] (port=1382 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1euILW-0004n5-82; Fri, 09 Mar 2018 08:46:06 -0500 In-reply-to: <5aa26e5f.d05b1c0a.10214.5e41@mx.google.com> (message from =?UTF-8?Q?M=C3=A1rton?= Marczell on Fri, 9 Mar 2018 12:22:05 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144071 Archived-At: > From: Márton Marczell > Date: Fri, 9 Mar 2018 12:22:05 +0100 > > My Windows username is Márton. > > In one of the files loaded by my .emacs (neotree.el), I added this line: > > (print load-file-name) > > 1. I start Emacs from the command line with no arguments. > 2. I view the *Messages* buffer. > > If the directory from which I launched Emacs has an accent in its path, > e.g. "D:\á\", this is printed: > "c:/Users/Márton/AppData/Roaming/.emacs.d/elpa/neotree-0.5.2/neotree.el" > But if it doesn't, e.g. "D:\a\", this is printed: > "c:/Users/Márton/AppData/Roaming/.emacs.d/elpa/neotree-0.5.2/neotree.el" > > (This prevents the neotree package from loading images in the latter case.) How is load-file-name of the package's .el file related to its inability to load images? Also, can you please provide a recipe that takes neotree.el out of the equation? AFAIU, it should be enough to have a .el file that is loaded in .emacs, and have the contents of that file be just (print load-file-name) Is that correct? > Please see also bug#25038, which seems related. But that bug was solved, so something else must be at work here. Thanks.