]> git.ipfire.org Git - thirdparty/gettext.git/commit
msgcat: Signal error when the same msgid is used with and without msgid_plural.
authorBruno Haible <bruno@clisp.org>
Sun, 29 Sep 2019 18:20:36 +0000 (20:20 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 29 Sep 2019 18:20:36 +0000 (20:20 +0200)
commite219e828ed44c2bfd00a05bc4bacfce16d22e109
treeaf3716c4b9ec51c99423fe41e593c58dca75cefa
parent6209647e09b6b437473f283eca1fc2550fc3aaf1
msgcat: Signal error when the same msgid is used with and without msgid_plural.

Suggested by Mikko Rantalainen <mikko.rantalainen@peda.net>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-09/msg00020.html>.

* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Signal an error when
the same msgid is used with and without msgid_plural.
* gettext-tools/src/msgcat.c (main): Exit with failure code if there was an
error.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/tests/msgcat-21: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
gettext-tools/src/msgcat.c
gettext-tools/src/msgcomm.c
gettext-tools/src/msgl-cat.c
gettext-tools/src/msguniq.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/msgcat-21 [new file with mode: 0755]