|
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.
0001-nl_langinfo-tests-Prepare-for-adding-more-tests.patch
Description: Text Data
0002-nl_langinfo-tests-Add-another-test.patch
Description: Text Data
0004-hard-locale-Add-comment-regarding-per-thread-locales.patch
Description: Text Data
0003-nl_langinfo-Add-comment-regarding-per-thread-locales.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |