]> git.ipfire.org Git - thirdparty/gettext.git/commit
msgen: Convert charset=CHARSET to charset=ASCII.
authorBruno Haible <bruno@clisp.org>
Tue, 15 Oct 2024 14:04:45 +0000 (16:04 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 15 Oct 2024 14:04:45 +0000 (16:04 +0200)
commiteeab24002b569910c5d244435bd774f3cdeaed0b
treeedb300c61407849ce86a61a767b169803e65cfdb
parent3769eb40d6487b21f9900d95e9d2edda524c9d8f
msgen: Convert charset=CHARSET to charset=ASCII.

Reported at <https://savannah.gnu.org/bugs/index.php?20923>.

* gettext-tools/src/msgen.c: Include msgl-ascii.h, c-strstr.h, xalloc.h.
(fill_header): New function, based on fill_header in msginit.c.
(main): Invoke it.
* gettext-tools/tests/msgen-1: Provide as input a POT file with charset=CHARSET,
and verify that the output has charset=ASCII.
gettext-tools/src/msgen.c
gettext-tools/tests/msgen-1