]> git.ipfire.org Git - thirdparty/gettext.git/commit
msgconv: Handle protected file names with spaces.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Apr 2021 16:26:57 +0000 (18:26 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Apr 2021 18:48:47 +0000 (20:48 +0200)
commit6934eec2d1dd16eeae032f0a46da8309d329fe41
treea774a0395ae08efb41169360e89b5bf035f16f8d
parent4cacad44e67171ce136cf5c1ae01093aa8e7a7ad
msgconv: Handle protected file names with spaces.

* gettext-tools/src/po-charset.h (po_lex_isolate_start, po_lex_isolate_end): New
declarations.
* gettext-tools/src/po-charset.c (po_lex_isolate_start, po_lex_isolate_end): New
variables.
(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Initialize
them.
* gettext-tools/woe32dll/gettextsrc-exports.c: Export also po_lex_isolate_start,
po_lex_isolate_end.
* gettext-tools/src/read-catalog-abstract.c: Include <stdbool.h>, po-charset.h.
(po_parse_comment_filepos): Parse the syntax of file names surrounded by control
characters.
* gettext-tools/src/msgl-iconv.c: Include msgl-ofn.h.
(iconv_msgdomain_list): Signal error if the target encoding does not contain the
control characters needed for escaping file names with spaces.
* gettext-tools/tests/msgconv-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
gettext-tools/src/msgl-iconv.c
gettext-tools/src/po-charset.c
gettext-tools/src/po-charset.h
gettext-tools/src/read-catalog-abstract.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/msgconv-8 [new file with mode: 0755]
gettext-tools/woe32dll/gettextsrc-exports.c