diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-02-02 19:14:24 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-02-02 19:14:24 +0200 |
commit | e7ac588e198385a9bc5a2338000ab6db69c2353c (patch) | |
tree | e25696520b4cc48bdf537afb8e9497663bd187b4 /src/unexw32.c | |
parent | 85a83ea09dd2440187945ed4bb5f3f6fcebb9a71 (diff) |
Avoid encoding file names run through dostounix_filename on MS-Windows.
src/w32.c (normalize_filename): Accept an additional argument
MULTIBYTE; if non-zero, traverse the file name by bytes and don't
downcase it even if w32-downcase-file-names is non-nil.
(dostounix_filename): Accept an additional argument MULTIBYTE and
pass it to normalize_filename.
(emacs_root_dir): Adjust.
src/msdos.h (dostounix_filename): Adjust prototype.
src/w32.h (dostounix_filename): Adjust prototype.
src/msdos.c (dostounix_filename): Accept an additional argument and
ignore it.
(init_environment): Adjust callers of dostounix_filename.
src/fileio.c (Ffile_name_directory, file_name_as_directory)
(directory_file_name, Fexpand_file_name)
(Fsubstitute_in_file_name): [DOS_NT] Adjust call to
dostounix_filename.
[WINDOWSNT]: Downcase file names if w32-downcase-file-names is
non-nil.
(Fsubstitute_in_file_name): [DOS_NT] Don't downcase environment
variables, as egetenv is case-insensitive for DOS_NT.
src/dired.c (file_name_completion): Don't call Fdirectory_file_name
with an encoded file name.
src/w32proc.c (Fw32_short_file_name, Fw32_long_file_name): Adjust
calls to dostounix_filename.
src/w32fns.c (Fx_file_dialog): Adjust call to dostounix_filename.
src/unexw32.c (unexec): Adjust call to dostounix_filename.
src/termcap.c (tgetent) [MSDOS]: Adjust call to dostounix_filename.
src/emacs.c (decode_env_path) [DOS_NT]: Adjust call to
dostounix_filename.
src/callproc.c (Fcall_process) [MSDOS]: Adjust call to
dostounix_filename.
Diffstat (limited to 'src/unexw32.c')
-rw-r--r-- | src/unexw32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unexw32.c b/src/unexw32.c index 6607129572..e8b553a87d 100644 --- a/src/unexw32.c +++ b/src/unexw32.c @@ -722,7 +722,7 @@ unexec (const char *new_name, const char *old_name) /* Ignore old_name, and get our actual location from the OS. */ if (!GetModuleFileName (NULL, in_filename, MAX_PATH)) abort (); - dostounix_filename (in_filename); + dostounix_filename (in_filename, 0); strcpy (out_filename, in_filename); /* Change the base of the output filename to match the requested name. */ |