]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Avoid error 'present charset "CHARSET" is not a portable encoding name...
authorBruno Haible <bruno@clisp.org>
Sat, 16 Sep 2023 22:18:47 +0000 (00:18 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 19 Sep 2023 02:11:23 +0000 (04:11 +0200)
commit510f464b4cf33492edfd6c1e4bd55824d9e2741e
tree112fcc44d7191696651a4fd4101fefc68d514d39
parentc3e3868fbf419792365d169037162c9cc4ba8743
xgettext: Avoid error 'present charset "CHARSET" is not a portable encoding name' when possible.

Reported by Arsen Arsenović <arsen@aarsen.me>
at <https://savannah.gnu.org/bugs/?64490>.

This changes the behaviour back to the one from gettext 0.21.1, where this
xgettext invocation produced just a warning.

* gettext-tools/src/msgl-iconv.c (iconv_message_list_internal): Don't give an
error when a PO file has a header entry with charset=CHARSET and is entirely
ASCII.
* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Likewise.
* gettext-tools/tests/xgettext-combine-1: New file.
* gettext-tools/tests/xgettext-combine-2: New file.
* gettext-tools/tests/xgettext-combine-3: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
gettext-tools/src/msgl-cat.c
gettext-tools/src/msgl-iconv.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-combine-1 [new file with mode: 0755]
gettext-tools/tests/xgettext-combine-2 [new file with mode: 0755]
gettext-tools/tests/xgettext-combine-3 [new file with mode: 0755]