aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-11-02 15:03:32 +0200
committerEli Zaretskii2013-11-02 15:03:32 +0200
commit1fd201bb1d720d0c5ab727a3972363778eef834f (patch)
tree508abf22dbb91d24309869bc42a93e814f9fbcd6 /src/msdos.c
parent5c4a19a90f803ed46629c2bdc1ac3d3563caa738 (diff)
downloademacs-1fd201bb1d720d0c5ab727a3972363778eef834f.tar.gz
emacs-1fd201bb1d720d0c5ab727a3972363778eef834f.zip
Adapted dostounix_filename. w32-short/long-filename work with wide APIs.
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 2ba7a16a443..cb4f8c3df89 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -3295,7 +3295,7 @@ void msdos_downcase_filename (unsigned char *);
3295/* Destructively turn backslashes into slashes. */ 3295/* Destructively turn backslashes into slashes. */
3296 3296
3297void 3297void
3298dostounix_filename (char *p, int ignore) 3298dostounix_filename (char *p)
3299{ 3299{
3300 msdos_downcase_filename (p); 3300 msdos_downcase_filename (p);
3301 3301
@@ -3559,7 +3559,7 @@ init_environment (int argc, char **argv, int skip_args)
3559 if (!s) s = "c:/command.com"; 3559 if (!s) s = "c:/command.com";
3560 t = alloca (strlen (s) + 1); 3560 t = alloca (strlen (s) + 1);
3561 strcpy (t, s); 3561 strcpy (t, s);
3562 dostounix_filename (t, 0); 3562 dostounix_filename (t);
3563 setenv ("SHELL", t, 0); 3563 setenv ("SHELL", t, 0);
3564 3564
3565 /* PATH is also downcased and backslashes mirrored. */ 3565 /* PATH is also downcased and backslashes mirrored. */
@@ -3569,7 +3569,7 @@ init_environment (int argc, char **argv, int skip_args)
3569 /* Current directory is always considered part of MsDos's path but it is 3569 /* Current directory is always considered part of MsDos's path but it is
3570 not normally mentioned. Now it is. */ 3570 not normally mentioned. Now it is. */
3571 strcat (strcpy (t, ".;"), s); 3571 strcat (strcpy (t, ".;"), s);
3572 dostounix_filename (t, 0); /* Not a single file name, but this should work. */ 3572 dostounix_filename (t); /* Not a single file name, but this should work. */
3573 setenv ("PATH", t, 1); 3573 setenv ("PATH", t, 1);
3574 3574
3575 /* In some sense all dos users have root privileges, so... */ 3575 /* In some sense all dos users have root privileges, so... */