aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 0fcb2993020..8bf57602927 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -1541,7 +1541,6 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
1541 child_process *cp; 1541 child_process *cp;
1542 int is_dos_app, is_cygnus_app, is_gui_app; 1542 int is_dos_app, is_cygnus_app, is_gui_app;
1543 int do_quoting = 0; 1543 int do_quoting = 0;
1544 char escape_char;
1545 /* We pass our process ID to our children by setting up an environment 1544 /* We pass our process ID to our children by setting up an environment
1546 variable in their environment. */ 1545 variable in their environment. */
1547 char ppid_env_var_buffer[64]; 1546 char ppid_env_var_buffer[64];
@@ -1554,6 +1553,8 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
1554 Some extra whitespace characters need quoting in Cygwin programs, 1553 Some extra whitespace characters need quoting in Cygwin programs,
1555 so this list is conditionally modified below. */ 1554 so this list is conditionally modified below. */
1556 char *sepchars = " \t*?"; 1555 char *sepchars = " \t*?";
1556 /* This is for native w32 apps; modified below for Cygwin apps. */
1557 char escape_char = '\\';
1557 1558
1558 /* We don't care about the other modes */ 1559 /* We don't care about the other modes */
1559 if (mode != _P_NOWAIT) 1560 if (mode != _P_NOWAIT)
@@ -2557,8 +2558,9 @@ All path elements in FILENAME are converted to their short names. */)
2557 if (GetShortPathName (SDATA (ENCODE_FILE (filename)), shortname, MAX_PATH) == 0) 2558 if (GetShortPathName (SDATA (ENCODE_FILE (filename)), shortname, MAX_PATH) == 0)
2558 return Qnil; 2559 return Qnil;
2559 2560
2560 dostounix_filename (shortname); 2561 dostounix_filename (shortname, 0);
2561 2562
2563 /* No need to DECODE_FILE, because 8.3 names are pure ASCII. */
2562 return build_string (shortname); 2564 return build_string (shortname);
2563} 2565}
2564 2566
@@ -2585,7 +2587,7 @@ All path elements in FILENAME are converted to their long names. */)
2585 if (!w32_get_long_filename (SDATA (ENCODE_FILE (filename)), longname, MAX_PATH)) 2587 if (!w32_get_long_filename (SDATA (ENCODE_FILE (filename)), longname, MAX_PATH))
2586 return Qnil; 2588 return Qnil;
2587 2589
2588 dostounix_filename (longname); 2590 dostounix_filename (longname, 0);
2589 2591
2590 /* If we were passed only a drive, make sure that a slash is not appended 2592 /* If we were passed only a drive, make sure that a slash is not appended
2591 for consistency with directories. Allow for drive mapping via SUBST 2593 for consistency with directories. Allow for drive mapping via SUBST