From 3d264907497d1f536a4a36e95a89c15e280bca7b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 2 Sep 2021 18:49:01 +0300 Subject: [PATCH] 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) --- src/fileio.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2