]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: In language Python, fix a format string handling bug.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Jun 2023 15:51:18 +0000 (17:51 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Jun 2023 16:58:32 +0000 (18:58 +0200)
commitbf9b3df4e0e7496fae52f814cc04d2ecc3e365f4
tree9a6517dfaac6871843552bd6a46c0b0cba000e33
parent735f771f15774e0d68b4ccc53994b0245d2005bb
xgettext: In language Python, fix a format string handling bug.

The option --flag=my_new_format:1:python-brace-format used to mark strings
inside my_new_format invocations as being 'python-format' instead of
'python-brace-format'.

* gettext-tools/src/xgettext.c (xgettext_record_flag): Use the correct index
into flag_table_python.
* gettext-tools/tests/xgettext-python-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
gettext-tools/src/xgettext.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-python-7 [new file with mode: 0755]