diff options
author | Eli Zaretskii <eliz@gnu.org> | 2000-08-20 08:30:05 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2000-08-20 08:30:05 +0000 |
commit | 3b5414898bbd86cca29a6736cd8f72243457b588 (patch) | |
tree | fca1ea2c3b71801ddf78a6f4da418485a7af3848 /lib-src | |
parent | 441ba712b0c7aa27aeddd3134b551ac201320ad5 (diff) | |
download | emacs-3b5414898bbd86cca29a6736cd8f72243457b588.tar.gz |
(canonicalize_filename) [DOS_NT]: Upcase the first
letter only if it is a drive letter.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/ChangeLog | 5 | ||||
-rw-r--r-- | lib-src/etags.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 23bdde2f9e1..3c1f63c70e2 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2000-08-20 Eli Zaretskii <eliz@is.elta.co.il> + + * etags.c (canonicalize_filename) [DOS_NT]: Upcase the first + letter only if it is a drive letter. + 2000-07-14 Gerd Moellmann <gerd@gnu.org> * ebrowse.c (xrealloc, xmalloc): Renamed from yrealloc and diff --git a/lib-src/etags.c b/lib-src/etags.c index 3cbdfca1b56..4a24bbfa375 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -5484,7 +5484,7 @@ canonicalize_filename (fn) { #ifdef DOS_NT /* Canonicalize drive letter case. */ - if (islower (fn[0])) + if (fn[0] && fn[1] == ':' && islower (fn[0])) fn[0] = toupper (fn[0]); /* Convert backslashes to slashes. */ for (; *fn != '\0'; fn++) |