diff options
author | Geoff Voelker <voelker@cs.washington.edu> | 1999-01-22 19:38:51 +0000 |
---|---|---|
committer | Geoff Voelker <voelker@cs.washington.edu> | 1999-01-22 19:38:51 +0000 |
commit | 9ca89ab3ae7069c2c82655888c241f01bdefc185 (patch) | |
tree | 78879c5602fb42b7533b5333d079d30fb059f72c /lib-src | |
parent | 1cddcbde271ff5c0b2bc72829a9fa08c7de09623 (diff) | |
download | emacs-9ca89ab3ae7069c2c82655888c241f01bdefc185.tar.gz |
(etags_getcwd, absolute_filename) [DOS_NT]: Canonicalize
the case of the drive letter.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/etags.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index b838d90b636..a1059e334d1 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -4664,6 +4664,9 @@ etags_getcwd () for (p = path; *p != '\0'; p++) if (*p == '\\') *p = '/'; + /* Canonicalize drive letter case. */ + if (islower (path[0])) + path[0] = toupper (path[0]); } #endif @@ -4790,6 +4793,12 @@ absolute_filename (file, cwd) slashp = etags_strchr (slashp + 1, '/'); } + +#ifdef DOS_NT + /* Canonicalize drive letter case. */ + if (res[0] && islower (res[0])) + res[0] = toupper (res[0]); +#endif if (res[0] == '\0') return savestr ("/"); |