From 91099cf415727b7ff4a920913fabde84dcf7f8fa Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Jul 2001 21:22:57 +0000 Subject: Update. 2001-07-18 Ulrich Drepper * libio/filedoalloc.c (_IO_file_doallocate): A few more minor cleanups and improvements. 2001-07-18 Andreas Schwab * posix/regex.c (WORDCHAR_P) [WCHAR]: Also return true for the underscore character. 2001-07-18 Jakub Jelinek * malloc/malloc (new_heap): Don't call munmap for zero length. 2001-07-18 Ulrich Drepper * libio/filedoalloc.c (_IO_file_doallocate): Use DEV_TTY_P if available to determine whether descriptor is for tty before calling isatty. * sysdeps/unix/sysv/linux/device-nrs.h: Define DEV_TTY_P. * sysdeps/generic/device-nrs.h: Likewise. --- posix/regex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'posix/regex.c') diff --git a/posix/regex.c b/posix/regex.c index 77a0758440..463f926221 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -5347,7 +5347,9 @@ PREFIX(re_search_2) (bufp, string1, size1, string2, size2, startpos, range, /* Use internationalized API instead of SYNTAX. */ # define WORDCHAR_P(d) \ (iswalnum ((wint_t)((d) == end1 ? *string2 \ - : (d) == string2 - 1 ? *(end1 - 1) : *(d))) != 0) + : (d) == string2 - 1 ? *(end1 - 1) : *(d))) != 0 \ + || ((d) == end1 ? *string2 \ + : (d) == string2 - 1 ? *(end1 - 1) : *(d)) == L'_') #else /* BYTE */ # define WORDCHAR_P(d) \ (SYNTAX ((d) == end1 ? *string2 \ -- cgit v1.2.3