bug-gnulib
[Top][All Lists]
Advanced

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

nl_langinfo, hard_locale, and uselocale


From: Bruno Haible
Subject: nl_langinfo, hard_locale, and uselocale
Date: Wed, 08 Feb 2023 23:58:38 +0100

It's interesting to note that
  - nl_langinfo considers the per-thread locale,
  - but hard_locale does not.

I'm adding a unit test for the first remark, and a comment for the second one.


2023-02-08  Bruno Haible  <bruno@clisp.org>

        hard-locale: Add comment regarding per-thread locales.
        * lib/hard-locale.h (hard_locale): Add comment.

2023-02-08  Bruno Haible  <bruno@clisp.org>

        nl_langinfo: Add comment regarding per-thread locales.
        * lib/nl_langinfo.c (ctype_codeset): Add comment.

        nl_langinfo tests: Add another test.
        * tests/test-nl_langinfo2.c: New file.
        * tests/test-nl_langinfo2.sh: New file.
        * modules/nl_langinfo-tests (Files): Add them. Add
        intl-thread-locale.m4.
        (Depends-on): Add c-strcasestr, stdbool.
        (configure.ac): Invoke gt_FUNC_USELOCALE.
        (Makefile.am): Arrange to compile test-nl_langinfo2 and test it through
        test-nl_langinfo2.sh.

        nl_langinfo tests: Prepare for adding more tests.
        * tests/test-nl_langinfo1.c: Renamed from tests/test-nl_langinfo.c.
        * tests/test-nl_langinfo1.sh: Renamed from tests/test-nl_langinfo.sh.
        Update.
        * modules/nl_langinfo-tests (Files, Makefile.am): Update.

Attachment: 0001-nl_langinfo-tests-Prepare-for-adding-more-tests.patch
Description: Text Data

Attachment: 0002-nl_langinfo-tests-Add-another-test.patch
Description: Text Data

Attachment: 0004-hard-locale-Add-comment-regarding-per-thread-locales.patch
Description: Text Data

Attachment: 0003-nl_langinfo-Add-comment-regarding-per-thread-locales.patch
Description: Text Data


reply via email to

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