projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
111c413
)
(decode_env_path): Ensure path elements use proper directory separator.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Jul 1997 06:32:13 +0000
(06:32 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Jul 1997 06:32:13 +0000
(06:32 +0000)
src/emacs.c
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index 31a2b6995e0828838720a4e4e1709c65c5d02d1c..e29724a38d75bc5ac6a7e7bbec67c250bb1ad36c 100644
(file)
--- a/
src/emacs.c
+++ b/
src/emacs.c
@@
-1576,6
+1576,20
@@
decode_env_path (evarname, defalt)
path = 0;
if (!path)
path = defalt;
+#ifdef DOS_NT
+ /* Ensure values from the environment use the proper directory separator. */
+ if (path)
+ {
+ p = alloca (strlen (path) + 1);
+ strcpy (p, path);
+ path = p;
+
+ if ('/' == DIRECTORY_SEP)
+ dostounix_filename (path);
+ else
+ unixtodos_filename (path);
+ }
+#endif
lpath = Qnil;
while (1)
{