aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2008-03-29 15:28:57 +0000
committerEli Zaretskii2008-03-29 15:28:57 +0000
commit9c06a1f304c51d595df7f9225f70f3d35af010fb (patch)
treebee9095e30718a6d6a02022103bd5f4f441c3a4c /src
parent6d5577783e2e909808280438eae1c2d6293fdf34 (diff)
downloademacs-9c06a1f304c51d595df7f9225f70f3d35af010fb.tar.gz
emacs-9c06a1f304c51d595df7f9225f70f3d35af010fb.zip
(Fexpand_file_name): Fix last change.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 2af8124a850..70b72f52553 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1064,6 +1064,7 @@ See also the function `substitute-in-file-name'. */)
1064 int length; 1064 int length;
1065 Lisp_Object handler, result; 1065 Lisp_Object handler, result;
1066 int multibyte; 1066 int multibyte;
1067 Lisp_Object hdir;
1067 1068
1068 CHECK_STRING (name); 1069 CHECK_STRING (name);
1069 1070
@@ -1385,8 +1386,12 @@ See also the function `substitute-in-file-name'. */)
1385 nm++; 1386 nm++;
1386 /* egetenv may return a unibyte string, which will bite us since 1387 /* egetenv may return a unibyte string, which will bite us since
1387 we expect the directory to be multibyte. */ 1388 we expect the directory to be multibyte. */
1388 tem = string_to_multibyte (build_string (newdir)); 1389 tem = build_string (newdir);
1389 newdir = SDATA (tem); 1390 if (!STRING_MULTIBYTE (tem))
1391 {
1392 hdir = DECODE_FILE (tem);
1393 newdir = SDATA (hdir);
1394 }
1390#ifdef DOS_NT 1395#ifdef DOS_NT
1391 collapse_newdir = 0; 1396 collapse_newdir = 0;
1392#endif 1397#endif