* 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.
2025-02-14 Paul Eggert <eggert@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.
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
# 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,
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.
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));