diff options
| author | Eli Zaretskii | 2013-12-15 22:39:36 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-12-15 22:39:36 +0200 |
| commit | db50ad5f11cc5809c27091181a13ee7aa34ec5ed (patch) | |
| tree | d6a471d3c654361bd1ad399a0c3fd0821e28559d /src | |
| parent | 1014b1dc34ed9717c48a089f45423235f09b1101 (diff) | |
| download | emacs-db50ad5f11cc5809c27091181a13ee7aa34ec5ed.tar.gz emacs-db50ad5f11cc5809c27091181a13ee7aa34ec5ed.zip | |
Fix bug with conditionals in expand-file-name on MS-Windows.
src/fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals.
Reported by Juanma Barranquero <lekktu@gmail.com>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/fileio.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d2ea1502a98..d5c84d04807 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-12-15 Eli Zaretskii <eliz@gnu.org> | 1 | 2013-12-15 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals. | ||
| 4 | Reported by Juanma Barranquero <lekktu@gmail.com>. | ||
| 5 | |||
| 3 | * process.c (Fprocess_send_eof): Don't crash if someone tries to | 6 | * process.c (Fprocess_send_eof): Don't crash if someone tries to |
| 4 | open a pty on MS-Windows. (Bug#16152) | 7 | open a pty on MS-Windows. (Bug#16152) |
| 5 | 8 | ||
diff --git a/src/fileio.c b/src/fileio.c index 02bde865644..47736d2b1b7 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1168,9 +1168,8 @@ filesystem tree, not (expand-file-name ".." dirname). */) | |||
| 1168 | tem = build_string (newdir_utf8); | 1168 | tem = build_string (newdir_utf8); |
| 1169 | } | 1169 | } |
| 1170 | else | 1170 | else |
| 1171 | #else | ||
| 1172 | tem = build_string (newdir); | ||
| 1173 | #endif | 1171 | #endif |
| 1172 | tem = build_string (newdir); | ||
| 1174 | if (multibyte && !STRING_MULTIBYTE (tem)) | 1173 | if (multibyte && !STRING_MULTIBYTE (tem)) |
| 1175 | { | 1174 | { |
| 1176 | hdir = DECODE_FILE (tem); | 1175 | hdir = DECODE_FILE (tem); |