]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: In language PO, handle non-ASCII non-UTF-8 input files correctly.
authorBruno Haible <bruno@clisp.org>
Fri, 10 Mar 2023 22:32:24 +0000 (23:32 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 14 Mar 2023 01:57:22 +0000 (02:57 +0100)
commit53a2b763b8dc516bd20258ea5aead80bc7ab7cf3
tree6a3048efd08cf8c0b2cb54d8d1f6715e97daa0e7
parentf59e9441caa599a4e010f49e7a3480d765e6d315
xgettext: In language PO, handle non-ASCII non-UTF-8 input files correctly.

* gettext-tools/src/x-po.c: Include msgl-iconv.h, msgl-ascii.h, po-charset.h.
(extract): If a header charset is present, convert the messages to UTF-8;
otherwise verify that they are all ASCII.
* gettext-tools/tests/xgettext-po-3: New file.
* gettext-tools/tests/xgettext-po-4: New file.
* gettext-tools/tests/testdata/xg-po-3.po: New file.
* gettext-tools/tests/testdata/xg-po-4.po: New file.
* gettext-tools/tests/Makefile.am (TESTS, EXTRA_DIST): Add them.
* NEWS: Mention the change.
NEWS
gettext-tools/src/x-po.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/testdata/xg-po-3.po [new file with mode: 0644]
gettext-tools/tests/testdata/xg-po-4.po [new file with mode: 0644]
gettext-tools/tests/xgettext-po-3 [new file with mode: 0755]
gettext-tools/tests/xgettext-po-4 [new file with mode: 0755]