Mercurial > emacs
changeset 18514:38e3a189ed1d
(decode_env_path): Ensure path elements use proper directory separator.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 01 Jul 1997 06:32:13 +0000 |
parents | 948557b5aa7c |
children | 614b4d642525 |
files | src/emacs.c |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/emacs.c Tue Jul 01 06:30:13 1997 +0000 +++ b/src/emacs.c Tue Jul 01 06:32:13 1997 +0000 @@ -1576,6 +1576,20 @@ 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) {