Mercurial > emacs
changeset 24140:9e4d1d3eab09
(etags_getcwd, absolute_filename) [DOS_NT]: Canonicalize
the case of the drive letter.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Fri, 22 Jan 1999 19:38:51 +0000 |
parents | 2b3e32c0fc18 |
children | db9dfcd11c84 |
files | lib-src/etags.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/etags.c Fri Jan 22 16:28:12 1999 +0000 +++ b/lib-src/etags.c Fri Jan 22 19:38:51 1999 +0000 @@ -4664,6 +4664,9 @@ 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 @@ 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 ("/");