bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c32is*: Ensure GNULIB_defined_mbstate_t is defined on AIX


From: Bruno Haible
Subject: c32is*: Ensure GNULIB_defined_mbstate_t is defined on AIX
Date: Mon, 10 Apr 2023 01:58:10 +0200

On AIX, I noticed that GNULIB_defined_mbstate_t gets defined to 1
by the mbrtowc module, but when I compile the c32is* modules
standalone, it does not get defined. However, the implementation
of these modules depends on GNULIB_defined_mbstate_t, to ensure
consistency with mbrtoc32 and mbrtowc.

This could cause problems in a package that invokes gnulib-tool
several times, because then GNULIB_defined_mbstate_t is not
consistent across compilation units.

This set of patches fixes it.


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.
        * lib/mbrtoc32.c: Add comment regarding AIX.
        * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Add comment regarding
        GNULIB_defined_mbstate_t.

Attachment: 0001-mbrtoc32-Add-comments.patch
Description: Text Data

Attachment: 0002-c32is-Ensure-GNULIB_defined_mbstate_t-is-defined-on-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]