From f6cfb13f55f00086f136ba653c77c01b58205322 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 2 Aug 2000 21:20:32 +0000 Subject: Update. * posix/regex.c (compile_range): Transliate range start and end characters to avoid empty range in case of REG_ICASE [PR libc/1842]. --- posix/regex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posix/regex.c') diff --git a/posix/regex.c b/posix/regex.c index 8c50446ba0..09d0a35e85 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -3518,9 +3518,9 @@ compile_range (range_start_char, p_ptr, pend, translate, syntax, b) /* Fetch the endpoints without translating them; the appropriate translation is done in the bit-setting loop below. */ - range_start[0] = range_start_char; + range_start[0] = TRANSLATE (range_start_char); range_start[1] = '\0'; - range_end[0] = p[0]; + range_end[0] = TRANSLATE (p[0]); range_end[1] = '\0'; /* Have to increment the pointer into the pattern string, so the -- cgit v1.2.3