gettext
0baf23d1 - xgettext: In language JavaScript, avoid a crash at an XML comment, CDATA, or PI.

Commit
1 year ago
xgettext: In language JavaScript, avoid a crash at an XML comment, CDATA, or PI. * gettext-tools/src/x-javascript.c (phase5_scan_xml_markup): Return int instead of bool. (phase5_get): Ignore XML markup parsed by phase5_scan_xml_markup. * gettext-tools/tests/xgettext-javascript-9: New file. * gettext-tools/tests/xgettext-javascript-10: New file. * gettext-tools/tests/xgettext-javascript-11: New file. * gettext-tools/tests/Makefile.am (TESTS): Add them.
Author
Committer
Parents
Loading