]> git.ipfire.org Git - thirdparty/gettext.git/commit
Avoid the need for charset conversion at run time on musl libc.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Jun 2023 11:56:24 +0000 (13:56 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 15 Jun 2023 09:26:58 +0000 (11:26 +0200)
commit5412a4f79929004cb6db15d545e07dc953330e8d
tree73da0926f9b46079ea9708bb309b2327fde45ffd
parentf5c9a0848694dbb74721404cf1878a9369acb13f
Avoid the need for charset conversion at run time on musl libc.

This fixes 1 system-tests failure (intl-2) and 3 tests failures (lang-c,
lang-c++, lang-sh).

* gettext-tools/src/write-mo.h (no_convert_to_utf8): New declaration.
(msgdomain_write_mo): Add a 4th parameter.
* gettext-tools/src/write-mo.c: Include po-charset.h, msgl-iconv.h.
(no_convert_to_utf8): New variable.
(msgdomain_write_mo): Add a 4th parameter. Convert the message list to UTF-8.
* gettext-tools/src/msgfmt.c (long_options): Add --no-convert.
(main): Handle the --no-convert option. Pass a 4th argument to
msgdomain_write_mo.
(usage): Document the --no-convert option.
* gettext-tools/doc/msgfmt.texi: Document the --no-convert option.
* gettext-tools/doc/gettext.texi (MO Files): Document the character encoding of
strings in MO files.
* gettext-tools/tests/msgfmt-5: Use msgfmt option --no-convert.
* gettext-tools/tests/msgfmt-12: Likewise.
* gettext-tools/tests/lang-pascal: Likewise.
* NEWS: Mention the change.
NEWS
gettext-tools/doc/gettext.texi
gettext-tools/doc/msgfmt.texi
gettext-tools/src/msgfmt.c
gettext-tools/src/write-mo.c
gettext-tools/src/write-mo.h
gettext-tools/tests/lang-pascal
gettext-tools/tests/msgfmt-12
gettext-tools/tests/msgfmt-5