]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: C: Revisit "hexadecimal escape sequence out of range" warnings.
authorBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 07:40:52 +0000 (08:40 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 07:40:52 +0000 (08:40 +0100)
commitf55873531e82adc985d87900a12c8c7fc2c71531
tree214f4778b78f8eec8195113bceeef12884255954
parentb181b91a32b3bc8f914801de1fd97d601a7a47bb
xgettext: C: Revisit "hexadecimal escape sequence out of range" warnings.

Reported by Vaclav Slavik <vaclav@slavik.io>
at <https://savannah.gnu.org/bugs/?65053>.

* gettext-tools/src/x-c.c (get_string_element): Add context argument. Don't warn
for character literals. For wide strings, use a different warning and complain
about "out of range" only for values >= 0x110000.
(phase5_get): Distinguish normal string literals and wide string literals.
gettext-tools/src/x-c.c