From a686d047d79bdfc37c096a4fa350c37e4ccf3cf5 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 3 Jun 2024 13:56:25 -0400 Subject: add LC_CTYPE epoch and use separate CT_ categories and CTM_ masks to support detecting change of LC_CTYPE between calls to wctype()/iswctype() and wctrans()/towctrans() --- src/ctype/iscntrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ctype/iscntrl.c') diff --git a/src/ctype/iscntrl.c b/src/ctype/iscntrl.c index a8107d05..d39a79ee 100644 --- a/src/ctype/iscntrl.c +++ b/src/ctype/iscntrl.c @@ -9,7 +9,7 @@ int iscntrl(int c) SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - return c == EOF ? 0 : map[c] & CT_CNTRL; + return c == EOF ? 0 : map[c] & CTM_CNTRL; } CHECK_1(int, 0, iscntrl, int) -- cgit v1.2.1