* m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Define through AC_DEFUN_ONCE.
* m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Require it.
* modules/c32isalnum (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4.
(configure.ac): Require gl_MBSTATE_T_BROKEN.
* modules/c32isalpha: Likewise.
* modules/c32isblank: Likewise.
* modules/c32iscntrl: Likewise.
* modules/c32isdigit: Likewise.
* modules/c32isgraph: Likewise.
* modules/c32islower: Likewise.
* modules/c32isprint: Likewise.
* modules/c32ispunct: Likewise.
* modules/c32isspace: Likewise.
* modules/c32isupper: Likewise.
* modules/c32isxdigit: Likewise.
+2023-04-09 Bruno Haible <bruno@clisp.org>
+
+ c32is*: Ensure GNULIB_defined_mbstate_t is defined on AIX.
+ * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Define through AC_DEFUN_ONCE.
+ * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Require it.
+ * modules/c32isalnum (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4.
+ (configure.ac): Require gl_MBSTATE_T_BROKEN.
+ * modules/c32isalpha: Likewise.
+ * modules/c32isblank: Likewise.
+ * modules/c32iscntrl: Likewise.
+ * modules/c32isdigit: Likewise.
+ * modules/c32isgraph: Likewise.
+ * modules/c32islower: Likewise.
+ * modules/c32isprint: Likewise.
+ * modules/c32ispunct: Likewise.
+ * modules/c32isspace: Likewise.
+ * modules/c32isupper: Likewise.
+ * modules/c32isxdigit: Likewise.
+
2023-04-09 Bruno Haible <bruno@clisp.org>
mbrtoc32: Add comments.
-# mbrtoc32.m4 serial 9.1
+# mbrtoc32.m4 serial 9.2
dnl Copyright (C) 2014-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
dnl determined. It describes how our overridden mbrtowc is implemented.
dnl We then implement mbrtoc32 accordingly.
- gl_MBSTATE_T_BROKEN
+ AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_TYPE_CHAR32_T])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
-# mbrtowc.m4 serial 38 -*- coding: utf-8 -*-
-dnl Copyright (C) 2001-2002, 2004-2005, 2008-2022 Free Software Foundation,
+# mbrtowc.m4 serial 38.1 -*- coding: utf-8 -*-
+dnl Copyright (C) 2001-2002, 2004-2005, 2008-2023 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl When this is set to 1, we replace both mbsinit() and mbrtowc(), in order to
dnl avoid inconsistencies.
-AC_DEFUN([gl_MBSTATE_T_BROKEN],
+AC_DEFUN_ONCE([gl_MBSTATE_T_BROKEN],
[
AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
AC_REQUIRE([AC_CANONICAL_HOST])
lib/c32isalnum.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isalnum])
lib/c32isalpha.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isalpha])
lib/c32isblank.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isblank])
lib/c32iscntrl.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32iscntrl])
lib/c32isdigit.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isdigit])
lib/c32isgraph.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isgraph])
lib/c32islower.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32islower])
lib/c32isprint.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isprint])
lib/c32ispunct.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32ispunct])
lib/c32isspace.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isspace])
lib/c32isupper.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isupper])
lib/c32isxdigit.c
lib/c32is-impl.h
m4/mbrtoc32.m4
+m4/mbrtowc.m4
m4/locale-fr.m4
+m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4
configure.ac:
AC_REQUIRE([gl_UCHAR_H])
+dnl Determine REPLACE_MBSTATE_T, from which GNULIB_defined_mbstate_t is
+dnl determined. It describes how mbrtoc32 is implemented.
+AC_REQUIRE([gl_MBSTATE_T_BROKEN])
AC_REQUIRE([gl_MBRTOC32_SANITYCHECK])
gl_UCHAR_MODULE_INDICATOR([c32isxdigit])