summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-05-10 04:24:49 +0000
committerJim Meyering <jim@meyering.net>1999-05-10 04:24:49 +0000
commitf1b3fb4f3b77652040333d63d15800991cd9cd5f (patch)
tree6d7839fc34e51be723c0f6d0bbf9fad8fd0435b3 /lib
parent94323ee2a77fd5f49a20289c8e772f9aba817387 (diff)
downloadcoreutils-f1b3fb4f3b77652040333d63d15800991cd9cd5f.tar.xz
Update from libc.
Diffstat (limited to 'lib')
-rw-r--r--lib/regex.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/regex.c b/lib/regex.c
index f05abc805..74fcf9c45 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -2,7 +2,7 @@
version 0.12.
(Implements POSIX draft P1003.2/D11.2, except for some of the
internationalization features.)
- Copyright (C) 1993, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
+ Copyright (C) 1993, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -254,6 +254,12 @@ init_syntax_once ()
#define ISUPPER(c) (ISASCII (c) && isupper (c))
#define ISXDIGIT(c) (ISASCII (c) && isxdigit (c))
+#ifdef _tolower
+# define TOLOWER(c) _tolower(c)
+#else
+# define TOLOWER(c) tolower(c)
+#endif
+
#ifndef NULL
# define NULL (void *)0
#endif
@@ -5628,7 +5634,7 @@ regcomp (preg, pattern, cflags)
/* Map uppercase characters to corresponding lowercase ones. */
for (i = 0; i < CHAR_SET_SIZE; i++)
- preg->translate[i] = ISUPPER (i) ? tolower (i) : i;
+ preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i;
}
else
preg->translate = NULL;