From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joakim =?UTF-8?Q?H=C3=A5rsman?= Newsgroups: gmane.emacs.bugs Subject: bug#50266: 28.0.50; expand-file-name broken with non ASCII characters Date: Mon, 30 Aug 2021 14:08:29 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000098b17c05cac5b195" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1293"; mail-complaints-to="usenet@ciao.gmane.io" To: 50266@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 30 14:09:14 2021 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 1mKg6D-0000Dt-Ea for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Aug 2021 14:09:13 +0200 Original-Received: from localhost ([::1]:59208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKg6C-0002Po-6x for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Aug 2021 08:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKg62-0002Ns-FY for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2021 08:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKg62-0006WE-8M for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2021 08:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKg61-0001PM-U9 for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2021 08:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joakim =?UTF-8?Q?H=C3=A5rsman?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Aug 2021 12:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50266 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16303253315394 (code B ref -1); Mon, 30 Aug 2021 12:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Aug 2021 12:08:51 +0000 Original-Received: from localhost ([127.0.0.1]:58333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKg5q-0001Ov-Cm for submit@debbugs.gnu.org; Mon, 30 Aug 2021 08:08:51 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKg5l-0001Ol-SQ for submit@debbugs.gnu.org; Mon, 30 Aug 2021 08:08:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKg5l-00022B-Ne for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2021 08:08:45 -0400 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:44792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKg5j-0006LW-Fc for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2021 08:08:45 -0400 Original-Received: by mail-pg1-x533.google.com with SMTP id s11so13190551pgr.11 for ; Mon, 30 Aug 2021 05:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ozoIHdDxX5kzZYuTs2CNVoJXNTIhlIOETSqEdSREu4k=; b=nnpnK5q/4KPP4e/V7sJYu//zUOh6OPQOBAB8EVwhACbg5XT2/AOCNzXBAtmPBitKeI 6YyRyYKrnlOleM3dgYiQ8U3NncoYKtfBH+8EiCnTPCCFeaT8bSiOpQj8ejPuu0w7Fvap CbcbUsKWK5Sa8JbNQxvHw6vCQ9Cl+97cakeyOSY2AkX87h8Xkb8sLfHfBNheEfQkmfLS /L14+yWRmD3rXSnSHf+6fl1yIAOPKh2PZWyV+1ofE20qj1msTPHWUP1fqtkdCN4orV1c vwW9ThGc29EvRa05+5lamXWCCpL7tJERC62ZfQFTDA1c96P43B21LuFHY9z0NUEFwb/K 7riw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ozoIHdDxX5kzZYuTs2CNVoJXNTIhlIOETSqEdSREu4k=; b=bRJbPgH2LXrxIoHZ6SLpNwHYoVauIx79ngQtu9Ntnv3exNYmoXkVBmTpdC0NG56jfW LfreFf1gpv4WgW99a5vVx05WwucNSltLF1DnMYTE1kmrNfEMXRiz70n7sIEaOjsEZ6m0 jFqTOqSEuVJZRml6DlXHUoxycf+SlU9zrUZDSXezeWnMbUTzrAxC6yEESx96gQqzVcwW qZLX6Ok0n3AIPGX2djeVWDVMzW2jJbFzvbDjd8t4JSkA2KgL08Q/guvHqOsc+x5l5zQs mEmumkx0EV9q+bKvZ+V70yPnq0JAiCUWg5HK0jkoXvWTYgB/4yEALUgJJlMiSg2moqos zNwQ== X-Gm-Message-State: AOAM531GamytqffNwFImqBFX1MJZD4lB0+sH/LE3T6J9GfD+wI63qYAO emMpFjonT++bhTmP+qhdOlxifvcMR2y/jxHHF4BFgyfnXvw= X-Google-Smtp-Source: ABdhPJw2Nkse6U0Zi/exgk/8sf35sxnzbyPTS9FZ1KQqjJUTKDvDULuoAqr34gWJToE9rFsC7G9JSOiqYY5hnNMmaC4= X-Received: by 2002:a63:4344:: with SMTP id q65mr21306541pga.364.1630325320494; Mon, 30 Aug 2021 05:08:40 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=joakim.harsman@gmail.com; helo=mail-pg1-x533.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:213014 Archived-At: --00000000000098b17c05cac5b195 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Bug manifests on Windows 10 ( I haven't tested other versions). Before starting emacs: C:\Users\JoakimH=C3=A5rsman>chdir C:\Users\JoakimH=C3=A5rsman C:\Users\JoakimH=C3=A5rsman>echo %HOME% C:\users\JoakimH=C3=A5rsman C:\Users\JoakimH=C3=A5rsman> runemacs -Q Notice that the current directory which is the same as the HOME environment, contains the letter =C3=A5. After starting emacs with runemacs -Q: (expand-file-name default-directory) returns "c:/users/JoakimH rsman/" or alternatively "c:/users/JoakimH\303\245rsman/" while the correct return value should be "c:/users/JoakimH=C3=A5rsman/" In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) Repository revision: 7640f1da0be206a7598c96acdfdaaf390a2b546c Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.19043 System Description: Microsoft Windows 10 Pro (v10.0.2009.19043.1165) Configured using: 'configure --prefix=3D/d/a/emacs-build/emacs-build/pkg/master-x86_64 --with-native-compilation --with-zlib --with-gnutls --with-xml2 --with-lcms2 --with-json --with-harfbuzz --without-cairo --with-rsvg --with-png --with-gif --without-tiff --with-jpeg --with-xpm --disable-build-details --disable-silent-rules --without-dbus --without-compress-install' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LANG: en_US.UTF8 locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 89375 14408) (symbols 48 7898 1) (strings 32 22918 3463) (string-bytes 1 759569) (vectors 16 23743) (vector-slots 8 1091049 147200) (floats 8 29 266) (intervals 56 257 0) (buffers 992 12)) --00000000000098b17c05cac5b195 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Bug manifests on Windows 10 ( I haven't tested oth= er versions). Before starting emacs:

C:\Users\JoakimH=C3=A5rsman>= chdir
C:\Users\JoakimH=C3=A5rsman

C:\Users\JoakimH=C3=A5rsman>= echo %HOME%
C:\users\JoakimH=C3=A5rsman

C:\Users\JoakimH=C3=A5rsm= an> runemacs -Q

Notice that the current directory which is the sa= me as the HOME
environment, contains the letter =C3=A5. After starting e= macs with runemacs
-Q:

(expand-file-name default-directory)
returns

"c:/users/JoakimH =C2=A0rsman/"

or altern= atively

"c:/users/JoakimH\303\245rsman/"

while the = correct return value should be

"c:/users/JoakimH=C3=A5rsman/&qu= ot;


In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32)
Reposi= tory revision: 7640f1da0be206a7598c96acdfdaaf390a2b546c
Repository branc= h: master
Windowing system distributor 'Microsoft Corp.', versio= n 10.0.19043
System Description: Microsoft Windows 10 Pro (v10.0.2009.19= 043.1165)

Configured using:
=C2=A0'configure --prefix=3D/d/a/= emacs-build/emacs-build/pkg/master-x86_64
=C2=A0--with-native-compilatio= n --with-zlib --with-gnutls --with-xml2
=C2=A0--with-lcms2 --with-json -= -with-harfbuzz --without-cairo --with-rsvg
=C2=A0--with-png --with-gif -= -without-tiff --with-jpeg --with-xpm
=C2=A0--disable-build-details --dis= able-silent-rules --without-dbus
=C2=A0--without-compress-install'
Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 L= IBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREA= DS TOOLKIT_SCROLL_BARS XPM
ZLIB

Important settings:
=C2=A0 val= ue of $LANG: en_US.UTF8
=C2=A0 locale-coding-system: cp1252

Major= mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mod= e: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 elect= ric-indent-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 gl= obal-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-m= ode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0= indent-tabs-mode: t
=C2=A0 transient-mark-mode: t

Load-path shad= ows:
None found.

Features:
(shadow sort mail-extr emacsbug mes= sage rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg ep= g-config gnus-util rmail
rmail-loaddefs auth-source eieio eieio-core eie= io-loaddefs
password-cache json map text-property-search time-date mm-de= code
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailhea= der
sendmail comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extrahelp-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv<= br>rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl
t= ooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwhee= l dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars
term/common-w= in tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace n= ewcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar= menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit= -lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-gen= eric 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 composite charscript charprop= case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preload= ed nadvice button
loaddefs faces cus-face macroexp files window text-pro= perties overlay
sha1 md5 base64 format env code-pages mule custom widget=
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tt= y
make-network-process native-compile emacs)

Memory information:<= br>((conses 16 89375 14408)
=C2=A0(symbols 48 7898 1)
=C2=A0(strings = 32 22918 3463)
=C2=A0(string-bytes 1 759569)
=C2=A0(vectors 16 23743)=
=C2=A0(vector-slots 8 1091049 147200)
=C2=A0(floats 8 29 266)
=C2= =A0(intervals 56 257 0)
=C2=A0(buffers 992 12))
--00000000000098b17c05cac5b195--