]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Fix parsing of escaped single-quote characters in shell parser.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Aug 2019 23:34:34 +0000 (01:34 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 11:06:39 +0000 (13:06 +0200)
commit39072866b27c2549c9b3e9e237ff80df5d296526
treeff3f3281cff4be7adcf2ea157330f4205bd6f3e8
parent58de220065d79f854e69850a8f5454ac12085e3e
xgettext: Fix parsing of escaped single-quote characters in shell parser.

Reported by Markus Gothe <nietzsche@lysator.liu.se>
at <https://savannah.gnu.org/bugs/?49809>.

* gettext-tools/src/x-sh.c (phase2_getc): Handle the case c == '\''
&& !open_singlequote && !open_doublequote differently.
* gettext-tools/tests/xgettext-sh-1: Add test with an escape single-quote.
gettext-tools/src/x-sh.c
gettext-tools/tests/xgettext-sh-1