diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 31a2b6995e0..e29724a38d7 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1576,6 +1576,20 @@ decode_env_path (evarname, defalt) | |||
| 1576 | path = 0; | 1576 | path = 0; |
| 1577 | if (!path) | 1577 | if (!path) |
| 1578 | path = defalt; | 1578 | path = defalt; |
| 1579 | #ifdef DOS_NT | ||
| 1580 | /* Ensure values from the environment use the proper directory separator. */ | ||
| 1581 | if (path) | ||
| 1582 | { | ||
| 1583 | p = alloca (strlen (path) + 1); | ||
| 1584 | strcpy (p, path); | ||
| 1585 | path = p; | ||
| 1586 | |||
| 1587 | if ('/' == DIRECTORY_SEP) | ||
| 1588 | dostounix_filename (path); | ||
| 1589 | else | ||
| 1590 | unixtodos_filename (path); | ||
| 1591 | } | ||
| 1592 | #endif | ||
| 1579 | lpath = Qnil; | 1593 | lpath = Qnil; |
| 1580 | while (1) | 1594 | while (1) |
| 1581 | { | 1595 | { |