From 32e793fa11f55ed480f7c42034635a0561d4b837 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 22 Feb 2011 20:08:53 +0200 Subject: [PATCH] Fix 2011-02-22T17:37:06Z!eggert@cs.ucla.edu. etags.c (canonicalize_filename, ISUPPER): Fix last change. --- lib-src/ChangeLog | 2 ++ lib-src/etags.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index b2bd5699945..fceeaba174c 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,5 +1,7 @@ 2011-02-22 Eli Zaretskii + * etags.c (canonicalize_filename, ISUPPER): Fix last change. + * makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)): Depend on ../lib/min-max.h. diff --git a/lib-src/etags.c b/lib-src/etags.c index 29b830151be..b738f0f4564 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -236,6 +236,7 @@ If you want regular expression support, you should delete this notice and #define ISALNUM(c) isalnum (CHAR(c)) #define ISALPHA(c) isalpha (CHAR(c)) #define ISDIGIT(c) isdigit (CHAR(c)) +#define ISUPPER(c) isupper (CHAR(c)) #define ISLOWER(c) islower (CHAR(c)) #define lowcase(c) tolower (CHAR(c)) @@ -6648,7 +6649,7 @@ canonicalize_filename (register char *fn) #ifdef DOS_NT /* Canonicalize drive letter case. */ if (fn[0] != '\0' && fn[1] == ':' && ISUPPER (fn[0])) - fn[0] = downcase (fn[0]); + fn[0] = lowcase (fn[0]); sep = '\\'; #endif -- 2.39.5