From 1dbaf410e0b3ec754ee4ab78f861d4ef034e7962 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 6 Nov 2020 14:16:40 +0200 Subject: Update support files from GNULIB. --- support/regex_internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'support/regex_internal.h') diff --git a/support/regex_internal.h b/support/regex_internal.h index dbc503cd..4a3cf779 100644 --- a/support/regex_internal.h +++ b/support/regex_internal.h @@ -77,6 +77,14 @@ # define isblank(ch) ((ch) == ' ' || (ch) == '\t') #endif +/* regex code assumes isascii has its usual numeric meaning, + even if the portable character set uses EBCDIC encoding, + and even if wint_t is wider than int. */ +#ifndef _LIBC +# undef isascii +# define isascii(c) (((c) & ~0x7f) == 0) +#endif + #ifdef _LIBC # ifndef _RE_DEFINE_LOCALE_FUNCTIONS # define _RE_DEFINE_LOCALE_FUNCTIONS 1 -- cgit v1.2.3