From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?M=C3=A1rton?= Marczell 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, 9 Mar 2018 12:22:05 +0100 Message-ID: <5aa26e5f.d05b1c0a.10214.5e41@mx.google.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_B83777E9-1898-452F-B03C-EE5E30B5168E_" X-Trace: blaine.gmane.org 1520594474 6075 195.159.176.226 (9 Mar 2018 11:21:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2018 11:21:14 +0000 (UTC) To: 30755@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 12:21:10 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 1euG5F-0001SK-Po for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 12:21:10 +0100 Original-Received: from localhost ([::1]:44557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euG7I-0007Ry-IL for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 06:23:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euG77-0007RI-Kw for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 06:23:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euG74-0001af-EI for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 06:23:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euG74-0001ab-Aa for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 06:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1euG74-0007UI-3h for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 06:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?M=C3=A1rton?= Marczell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Mar 2018 11:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.152059454528718 (code B ref -1); Fri, 09 Mar 2018 11:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Mar 2018 11:22:25 +0000 Original-Received: from localhost ([127.0.0.1]:51769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euG6S-0007T8-N2 for submit@debbugs.gnu.org; Fri, 09 Mar 2018 06:22:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euG6Q-0007Ss-L0 for submit@debbugs.gnu.org; Fri, 09 Mar 2018 06:22:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euG6J-0001Qg-Ti for submit@debbugs.gnu.org; Fri, 09 Mar 2018 06:22:17 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euG6J-0001Qc-Ou for submit@debbugs.gnu.org; Fri, 09 Mar 2018 06:22:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euG6H-0007MH-Tz for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 06:22:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euG6E-0001Ps-LM for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 06:22:13 -0500 Original-Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:38857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euG6E-0001PU-AD for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 06:22:10 -0500 Original-Received: by mail-wm0-x22e.google.com with SMTP id z9so3247362wmb.3 for ; Fri, 09 Mar 2018 03:22:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance; bh=IFHI7Le2NNY9LyOaa0CpgkQPqFeArnYUU/hkeaaIJAs=; b=A+OKa2HleBz/4q9+4zcekWZlK4KU4eR4Hzd6ZDXSYql6wjAyhled7L4i1qdyHQLRML 5Pm/4otq9Ql/o3SoHEQsbaKH2iz+3SsDFk49UPZJf266V2QXeLn1QBzHBQGD0tFJ19Qx 8Z4XgnQHg1mRtQadCgDZNNPYPAH+Crs2s2KRpNPJs06Nka9etiaDYQI0L/BFjsHW1Uo4 0ocCEVnNApgX1OMlZLgOTY6GcWEs+KpkGuuasr8ffnFvMuGTrOCm1P0osXGwEfJw9KPa Lc4xOdnpLAvvIriyMzthpaadvhSI5SVHemNs68lLo/z9KoWsBYDtWow62tNECpMPRqEQ kysQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=IFHI7Le2NNY9LyOaa0CpgkQPqFeArnYUU/hkeaaIJAs=; b=WsX76iUVy0W3BLvaQvYjcmXltsxwTYxzwrhXGnoLGekd+s5NtbTEdTaX4T4YCY945q atiIIEDpP9t+kP5u/8k6f4lNoWv+tuVINUqpm1q7unIidZDfBh98oBfsZJGzn6TyUgv1 cpl52og3n2XB+u1DIYSx1TXXAv7cBKpGhtREzA1NGyHp6IcRRma50iS5vzCa7HRVpJH4 doB7UzJYEwgh3Zqlku5Anzf+uJQgpAClNnJggvjHs+RuMCAjEIWECHqkO+gpdZZdnZW8 lgzE8uyWuqazAoVkxAOF5Hj1OX5wYIPxuLDG01uuJa/7pZvAOUefJ6yuDWC2PUvdydvw 7FYA== X-Gm-Message-State: AElRT7HWZOgyDf4hp5j24vPX7y1wlQzcWzNvYPfSspIEVEiFbeq0vgKK nA/i+mi5WNQDSVRQbIu0wB2lUAwv X-Google-Smtp-Source: AG47ELufRFBxTiGvIIIE42s+tnLodc5GVmPqJTfhZIUq1FbuE2gs2xPmMjpCed/IynMS6tUfzX55rA== X-Received: by 10.28.180.132 with SMTP id d126mr1865925wmf.93.1520594528363; Fri, 09 Mar 2018 03:22:08 -0800 (PST) Original-Received: from ?IPv6:::ffff:192.168.2.4? (5E1BEE66.mobile.pool.telekom.hu. [94.27.238.102]) by smtp.gmail.com with ESMTPSA id p199sm1067071wmb.42.2018.03.09.03.22.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Mar 2018 03:22:07 -0800 (PST) Importance: normal X-Priority: 3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:144066 Archived-At: --_B83777E9-1898-452F-B03C-EE5E30B5168E_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" My Windows username is M=C3=A1rton. 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:\=C3=A1\", this is printed: "c:/Users/M=C3=A1rton/AppData/Roaming/.emacs.d/elpa/neotree-0.5.2/neotree.e= l" But if it doesn't, e.g. "D:\a\", this is printed: "c:/Users/M=C3=83=C2=A1rton/AppData/Roaming/.emacs.d/elpa/neotree-0.5.2/neo= tree.el" (This prevents the neotree package from loading images in the latter case.) Please see also bug#25038, which seems related. In GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-26 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 10.0.16299 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=3D-O2 -static -g3' PKG_CONFIG_PATH=3D/mingw64/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: HUN locale-coding-system: cp1250 Major mode: Messages Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: "TATTARAA TATTARAA TATTARAA" "c:/Users/M=C3=A1rton/AppData/Roaming/.emacs.d/elpa/neotree-0.5.2/neotree.e= l" "c:/Users/M=C3=A1rton/AppData/Roaming/.emacs.d/elpa/neotree-0.5.2/" Loading c:/Users/M=C3=A1rton/AppData/Roaming/.emacs.d/custom.el (source)...= done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message idna rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils vc-git diff-mode easy-mmode cursor-sensor js2-mode etags xref project js sgml-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs imenu dired neotree derived finder-inf package epg-config sql view thingatpt edmacro kmacro python tramp-sh tramp tramp-compat auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec advice json map seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv comint ring cl-loaddefs pcase cl-lib ansi-color time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 370288 19749) (symbols 56 34419 0) (miscs 48 60 234) (strings 32 62682 11501) (string-bytes 1 1969857) (vectors 16 54523) (vector-slots 8 895948 6275) (floats 8 467 185) (intervals 56 909 73) (buffers 976 20)) --_B83777E9-1898-452F-B03C-EE5E30B5168E_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

My Windows username is M=C3=A1rton.

In one of the files loaded b= y my .emacs (neotree.el), I added this line:

=C2=A0=C2=A0 (print load-file-name)

 

1. I start Emacs from the co= mmand line with no arguments.

2. I view the *Messages* buffer.

 

If the directory from which I launched Emacs ha= s an accent in its path,

e.g. "D:\=C3=A1\", this is printed:<= /p>

"c:/Users/M=C3=A1rton/AppDa= ta/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=C3=83=C2=A1rton/AppData/Roaming/.emacs.d/elpa= /neotree-0.5.2/neotree.el"

<= span lang=3DEN-US> 

(This prevents the neotree package from loading images in the la= tter case.)

Pl= ease see also bug#25038, which seems related.

 

 

<= span lang=3DEN-US> 

 

In GNU Emacs 25.3.1 (x86_64-w64-mingw32)

of 2017-09-26 built on LAPHROAIG

Windowing system distri= butor 'Microsoft Corp.', version 10.0.16299

Configured using:

'configure --without-dbus --without-co= mpress-install 'CFLAGS=3D-O2

-static -g3' PKG_CONFIG_PATH=3D/mingw64/lib/pkgconfig'=

 <= /span>

Configured features:=

XPM JPEG TIFF GIF = PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB

TOOLKIT_SCROLL_BARS

 

Important settings:

=C2=A0 value of $LANG: HUN=

=C2=A0 locale-coding-sys= tem: cp1250

 

Major mod= e: Messages

 

Minor mod= es in effect:

= =C2=A0 diff-auto-refine-mode: t

<= span lang=3DEN-US>=C2=A0 shell-dirtrack-mode: t

=C2=A0 tooltip-mode: t<= /p>

=C2=A0 global-eldoc-mode: t=

=C2=A0 electric-in= dent-mode: t

= =C2=A0 mouse-wheel-mode: t

=C2=A0 tool-bar-mode: t

=C2=A0 menu-bar-mode: t

=C2=A0 file-name-shadow-mode: t=

=C2=A0 global-font-lock-= mode: t

=C2=A0= font-lock-mode: t

=C2=A0 blink-cursor-mode: t

= =C2=A0 auto-composition-mode: t

=C2=A0 auto-encryption-mode: t

=C2=A0 auto-compressi= on-mode: t

=C2= =A0 buffer-read-only: t

=C2=A0 line-number-mode: t

=C2=A0 transient-mark-mode: t

<= p class=3DMsoNormal> 

Recent messages:

 

"TATTARAA TATTARAA TATTARAA"

 

"c:/Users/M=C3=A1rton/Ap= pData/Roaming/.emacs.d/elpa/neotree-0.5.2/neotree.el"

 

"c:/Users/M=C3=A1rton/AppData/Ro= aming/.emacs.d/elpa/neotree-0.5.2/"

 

Loading c:/Users/M=C3=A1rton/AppData/Roaming/.emacs.d/c= ustom.el (source)...done

For information about GNU Emacs and the GNU system, type C-h C-a= .

Making compl= etion list...

=  

Load-pa= th shadows:

No= ne found.

 

Features:

(shadow sort ma= il-extr emacsbug message idna rfc822 mml mml-sec epg

<= p class=3DMsoNormal>mm-decode mm-bodies mm-encode mail-p= arse rfc2231 mailabbrev gmm-utils

mailheader sendmail rfc2047 rfc2045 ietf-drums mail-uti= ls vc-git

diff= -mode easy-mmode cursor-sensor js2-mode etags xref project js

sgml-mode cc-mode cc-fonts = cc-guess cc-menus cc-cmds cc-styles cc-align

cc-engine cc-vars cc-defs imenu dired neotr= ee derived finder-inf package

epg-config sql view thingatpt edmacro kmacro python tramp-s= h tramp

tramp-= compat auth-source cl-seq eieio eieio-core cl-macs gnus-util

mm-util help-fns mail-prsvr = password-cache tramp-loaddefs trampver

ucs-normalize shell pcomplete format-spec advice j= son map seq byte-opt

gv bytecomp byte-compile cl-extra help-mode easymenu cconv comint = ring

cl-loadde= fs pcase cl-lib ansi-color time-date mule-util tooltip eldoc

electric uniquify ediff-hook= vc-hooks lisp-float-type mwheel dos-w32

ls-lisp disp-table w32-win w32-vars term/common-= win tool-bar dnd fontset

image regexp-opt fringe tabulated-list newcomment elisp-mode lis= p-mode

prog-mo= de register page menu-bar rfn-eshadow timer select scroll-bar

mouse jit-lock font-lock sy= ntax facemenu font-core frame cl-generic cham

georgian utf-8-lang misc-lang vietnamese ti= betan thai tai-viet lao

korean japanese eucjp-ms cp51932 hebrew greek romanian slovak cze= ch

european et= hiopic indian cyrillic chinese charscript case-table epa-hook

jka-cmpr-hook help simple a= bbrev minibuffer cl-preloaded nadvice

loaddefs button faces cus-face macroexp files text-= properties overlay

sha1 md5 base64 format env code-pages mule custom widget

hashtable-print-readable ba= ckquote w32notify w32 multi-tty

<= span lang=3DEN-US>make-network-process emacs)

 

Memory information:

((conses 16 370288 19749)=

(symbols 56 34419 0)

(miscs 48 60 234)=

(strings 32 62682= 11501)

(stri= ng-bytes 1 1969857)

(vectors 16 54523)

(vector-slots 8 895948 6275)

(floats 8 467 185)

(intervals 56 909 73)<= /p>

(buffers 976 20))

= --_B83777E9-1898-452F-B03C-EE5E30B5168E_--