From: Eli Zaretskii Date: Thu, 2 Sep 2021 15:49:01 +0000 (+0300) Subject: Fix expansion of non-ASCII $HOME X-Git-Tag: emacs-28.0.90~1220 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3d264907497d1f536a4a36e95a89c15e280bca7b;p=emacs.git Fix expansion of non-ASCII $HOME * src/fileio.c (Fexpand_file_name): Make the file name multibyte if the value of $HOME is multibyte. (Bug#50266) --- diff --git a/src/fileio.c b/src/fileio.c index 13c99bee109..0db8ed793b3 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1307,6 +1307,8 @@ the root directory. */) newdir = SSDATA (hdir); newdirlim = newdir + SBYTES (hdir); } + else if (!multibyte && STRING_MULTIBYTE (tem)) + multibyte = 1; #ifdef DOS_NT collapse_newdir = false; #endif