* doc/pastposix-functions/isascii.texi: There is no isascii module. * m4/mbswidth.m4 (gl_MBSWIDTH): Do not check for isascii, as it no longer seems to be used here. * tests/test-c-ctype.c (test_agree_with_C_locale): Do not assume isascii exists, as POSIX no longer requires it. --- ChangeLog | 7 +++++++ doc/pastposix-functions/isascii.texi | 8 ++------ m4/mbswidth.m4 | 4 ++-- tests/test-c-ctype.c | 1 - 4 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 9201011285..4e2c23cea8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2025-02-14 Paul Eggert <egg...@cs.ucla.edu> + isascii: stop using it + * doc/pastposix-functions/isascii.texi: There is no isascii module. + * m4/mbswidth.m4 (gl_MBSWIDTH): Do not check for isascii, + as it no longer seems to be used here. + * tests/test-c-ctype.c (test_agree_with_C_locale): + Do not assume isascii exists, as POSIX no longer requires it. + doc: “C11” → “C standard” for <sys/types.h> * doc/gnulib-readme.texi (C language versions): Don’t be overly specific about <sys/types.h>’s absence from the C standard. diff --git a/doc/pastposix-functions/isascii.texi b/doc/pastposix-functions/isascii.texi index d3e422147a..2c92fd9311 100644 --- a/doc/pastposix-functions/isascii.texi +++ b/doc/pastposix-functions/isascii.texi @@ -5,19 +5,15 @@ Removed in POSIX.1-2024. POSIX.1-2017 specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/isascii.html} -Gnulib module: ctype -@mindex ctype +Gnulib module: --- -Portability problems fixed by Gnulib: +Portability problems not fixed by Gnulib: @itemize @item This function cannot be called from plain inline or extern inline functions on some platforms: macOS 10.8. -@end itemize -Portability problems not fixed by Gnulib: -@itemize @item This function is removed in POSIX.1-2024. @end itemize diff --git a/m4/mbswidth.m4 b/m4/mbswidth.m4 index f46a502c0e..50f57c8e1f 100644 --- a/m4/mbswidth.m4 +++ b/m4/mbswidth.m4 @@ -1,5 +1,5 @@ # mbswidth.m4 -# serial 19 +# serial 20 dnl Copyright (C) 2000-2002, 2004, 2006-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -12,7 +12,7 @@ dnl From Bruno Haible. AC_DEFUN([gl_MBSWIDTH], [ AC_CHECK_HEADERS_ONCE([wchar.h]) - AC_CHECK_FUNCS_ONCE([isascii mbsinit]) + AC_CHECK_FUNCS_ONCE([mbsinit]) dnl UnixWare 7.1.1 <wchar.h> has a declaration of a function mbswidth() dnl that clashes with ours. diff --git a/tests/test-c-ctype.c b/tests/test-c-ctype.c index 35f2fd1e7a..c5eadb297e 100644 --- a/tests/test-c-ctype.c +++ b/tests/test-c-ctype.c @@ -34,7 +34,6 @@ test_agree_with_C_locale (void) for (c = 0; c <= UCHAR_MAX; c++) { - ASSERT (c_isascii (c) == (isascii (c) != 0)); if (c_isascii (c)) { ASSERT (c_isalnum (c) == (isalnum (c) != 0)); -- 2.45.2