aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2000-08-20 08:30:05 +0000
committerEli Zaretskii2000-08-20 08:30:05 +0000
commit3b5414898bbd86cca29a6736cd8f72243457b588 (patch)
treefca1ea2c3b71801ddf78a6f4da418485a7af3848
parent441ba712b0c7aa27aeddd3134b551ac201320ad5 (diff)
downloademacs-3b5414898bbd86cca29a6736cd8f72243457b588.tar.gz
emacs-3b5414898bbd86cca29a6736cd8f72243457b588.zip
(canonicalize_filename) [DOS_NT]: Upcase the first
letter only if it is a drive letter.
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/etags.c2
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 @@
12000-08-20 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * etags.c (canonicalize_filename) [DOS_NT]: Upcase the first
4 letter only if it is a drive letter.
5
12000-07-14 Gerd Moellmann <gerd@gnu.org> 62000-07-14 Gerd Moellmann <gerd@gnu.org>
2 7
3 * ebrowse.c (xrealloc, xmalloc): Renamed from yrealloc and 8 * 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)
5484{ 5484{
5485#ifdef DOS_NT 5485#ifdef DOS_NT
5486 /* Canonicalize drive letter case. */ 5486 /* Canonicalize drive letter case. */
5487 if (islower (fn[0])) 5487 if (fn[0] && fn[1] == ':' && islower (fn[0]))
5488 fn[0] = toupper (fn[0]); 5488 fn[0] = toupper (fn[0]);
5489 /* Convert backslashes to slashes. */ 5489 /* Convert backslashes to slashes. */
5490 for (; *fn != '\0'; fn++) 5490 for (; *fn != '\0'; fn++)