diff options
| author | Eli Zaretskii | 2021-09-02 18:49:01 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2021-09-02 18:49:01 +0300 |
| commit | 3d264907497d1f536a4a36e95a89c15e280bca7b (patch) | |
| tree | 3f03e680a266c0a659d868bb9e717ae8108e4cd5 /src | |
| parent | 110db95e13535cb6b364ac9ca3490dca7ea9ac50 (diff) | |
| download | emacs-3d264907497d1f536a4a36e95a89c15e280bca7b.tar.gz emacs-3d264907497d1f536a4a36e95a89c15e280bca7b.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. */) | |||
| 1307 | newdir = SSDATA (hdir); | 1307 | newdir = SSDATA (hdir); |
| 1308 | newdirlim = newdir + SBYTES (hdir); | 1308 | newdirlim = newdir + SBYTES (hdir); |
| 1309 | } | 1309 | } |
| 1310 | else if (!multibyte && STRING_MULTIBYTE (tem)) | ||
| 1311 | multibyte = 1; | ||
| 1310 | #ifdef DOS_NT | 1312 | #ifdef DOS_NT |
| 1311 | collapse_newdir = false; | 1313 | collapse_newdir = false; |
| 1312 | #endif | 1314 | #endif |