diff options
| author | Eli Zaretskii | 2013-12-07 16:59:37 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-12-07 16:59:37 +0200 |
| commit | 857fd372ee7908cca436e7662f1462815b6ad099 (patch) | |
| tree | 195ac3721b670c6d48c5d810bda1869af9b6b732 /src | |
| parent | 080fd64974060e6b47573c94af2b80f1a5f3ef2c (diff) | |
| download | emacs-857fd372ee7908cca436e7662f1462815b6ad099.tar.gz emacs-857fd372ee7908cca436e7662f1462815b6ad099.zip | |
Fixed $HOME in expand-file-name.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 476d77f8244..e5347ce765a 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1164,7 +1164,18 @@ filesystem tree, not (expand-file-name ".." dirname). */) | |||
| 1164 | nm++; | 1164 | nm++; |
| 1165 | /* `egetenv' may return a unibyte string, which will bite us since | 1165 | /* `egetenv' may return a unibyte string, which will bite us since |
| 1166 | we expect the directory to be multibyte. */ | 1166 | we expect the directory to be multibyte. */ |
| 1167 | tem = build_string (newdir); | 1167 | #ifdef WINDOWSNT |
| 1168 | if (newdir[0]) | ||
| 1169 | { | ||
| 1170 | char newdir_utf8[MAX_UTF8_PATH]; | ||
| 1171 | |||
| 1172 | filename_from_ansi (newdir, newdir_utf8); | ||
| 1173 | tem = build_string (newdir_utf8); | ||
| 1174 | } | ||
| 1175 | else | ||
| 1176 | #else | ||
| 1177 | tem = build_string (newdir); | ||
| 1178 | #endif | ||
| 1168 | if (multibyte && !STRING_MULTIBYTE (tem)) | 1179 | if (multibyte && !STRING_MULTIBYTE (tem)) |
| 1169 | { | 1180 | { |
| 1170 | hdir = DECODE_FILE (tem); | 1181 | hdir = DECODE_FILE (tem); |