bug-gnulib
[Top][All Lists]
Advanced

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

more tests against glibc C locale bug


From: Bruno Haible
Subject: more tests against glibc C locale bug
Date: Mon, 03 Apr 2023 14:32:55 +0200

For robustness, let me add tests against the glibc bug
https://sourceware.org/bugzilla/show_bug.cgi?id=19932
also to the mb*c32* unit tests.

Here, no fixes are needed, since the fixes are already in the mb*wc*
and mbrtoc32 modules.


2023-04-03  Bruno Haible  <bruno@clisp.org>

        mbstoc32s tests: Check behaviour in the C locale.
        * tests/test-mbstoc32s.c (main): Test behaviour in the C locale. Based
        on tests/test-mbstowcs.c.
        * tests/test-mbstoc32s-5.sh: New file, based on tests/test-mbstowcs5.sh.
        * modules/mbstoc32s-tests (Files): Add it.
        (Depends-on): Add btoc32.
        (Makefile.am): Run test-mbstoc32s-5.sh.

2023-04-03  Bruno Haible  <bruno@clisp.org>

        mbsnrtoc32s tests: Check behaviour in the C locale.
        * tests/test-mbsnrtoc32s.c (main): Test behaviour in the C locale. Based
        on tests/test-mbsnrtowcs.c.
        * tests/test-mbsnrtoc32s-5.sh: New file, based on
        tests/test-mbsrtowcs5.sh.
        * modules/mbsnrtoc32s-tests (Files): Add it.
        (Depends-on): Add btoc32.
        (Makefile.am): Run test-mbsnrtoc32s-5.sh.

2023-04-03  Bruno Haible  <bruno@clisp.org>

        mbsrtoc32s tests: Check behaviour in the C locale.
        * tests/test-mbsrtoc32s.c (main): Test behaviour in the C locale. Based
        on tests/test-mbsrtowcs.c.
        * tests/test-mbsrtoc32s-5.sh: New file, based on
        tests/test-mbsrtowcs5.sh.
        * modules/mbsrtoc32s-tests (Files): Add it.
        (Depends-on): Add btoc32.
        (Makefile.am): Run test-mbsrtoc32s-5.sh.

2023-04-03  Bruno Haible  <bruno@clisp.org>

        btoc32 tests: Check behaviour in the C locale.
        * tests/test-btoc32.c (main): Test behaviour in the C locale. Based on
        tests/test-btowc.c.
        * tests/test-btoc32-3.sh: New file, based on tests/test-btowc3.sh.
        * modules/btoc32-tests (Files): Add it.
        (Makefile.am): Test it.

2023-04-03  Bruno Haible  <bruno@clisp.org>

        mbrtoc32 tests: Prefer *c32* functions.
        * tests/test-mbrtoc32.c (main): Use btoc32 instead of btowc.
        * modules/mbrtoc32-tests (Depends-on): Add btoc32.

2023-04-03  Bruno Haible  <bruno@clisp.org>

        mbrtoc32 tests: Add comment.
        * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Add comment.
        * m4/mbrtoc32.m4 (gl_MBRTOC32_C_LOCALE): Add comment.
        * tests/test-mbrtoc32.c: Add comment.
        * tests/test-mbrtoc32-5.sh: Use symmetric coding style.
        * doc/posix-functions/mbrtoc32.texi: Update.

Attachment: 0001-mbrtoc32-tests-Add-comment.patch
Description: Text Data

Attachment: 0002-mbrtoc32-tests-Prefer-c32-functions.patch
Description: Text Data

Attachment: 0003-btoc32-tests-Check-behaviour-in-the-C-locale.patch
Description: Text Data

Attachment: 0004-mbsrtoc32s-tests-Check-behaviour-in-the-C-locale.patch
Description: Text Data

Attachment: 0005-mbsnrtoc32s-tests-Check-behaviour-in-the-C-locale.patch
Description: Text Data

Attachment: 0006-mbstoc32s-tests-Check-behaviour-in-the-C-locale.patch
Description: Text Data


reply via email to

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