]> git.ipfire.org Git - thirdparty/gettext.git/commit
intl: Treat C.UTF-8 locale like C locale.
authorBruno Haible <bruno@clisp.org>
Sun, 10 Sep 2023 18:33:09 +0000 (20:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Sep 2023 18:49:32 +0000 (20:49 +0200)
commit3873b7f1c777e6b2c874ef7c8da3f66f3b02e3fc
tree6a53c9b44e0f362bd975e718204b132f61ad7fed
parent4f99b79617d80ea7ce78d808306464fa44488caf
intl: Treat C.UTF-8 locale like C locale.

The wiki page https://sourceware.org/glibc/wiki/Proposals/C.UTF-8
says that "Setting LC_ALL=C.UTF-8 will ignore LANGUAGE just like it
does with LC_ALL=C." This is now implemented in glibc. Implement it
for other platforms as well.

* gettext-runtime/intl/dcigettext.c (DCIGETTEXT, guess_category_value): Treat
C.<encoding> locale like the C locale.
* gettext-runtime/NEWS: Mention it.
* NEWS: Likewise.
* gettext-tools/tests/intl-0: New file, based on gettext-tools/tests/intl-1.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
NEWS
gettext-runtime/NEWS
gettext-runtime/intl/dcigettext.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/intl-0 [new file with mode: 0755]