]> git.ipfire.org Git - thirdparty/gettext.git/commit
desktop: Fix whitespace handling around '='
authorDaiki Ueno <ueno@gnu.org>
Mon, 1 Apr 2019 05:17:19 +0000 (07:17 +0200)
committerDaiki Ueno <ueno@gnu.org>
Mon, 1 Apr 2019 05:27:19 +0000 (07:27 +0200)
commit78ffc7480aa3c0a435961fb94d4e184c4e027c13
tree5774041ce6584a8f41a635754ece571affca92af
parent4a9fa31341c9fcbd2e960d8e73127c412fd0c3d9
desktop: Fix whitespace handling around '='

While the spec only allows spaces before and after '=',
xgettext/msgfmt previously accepted all whitespaces including '\n'.
That was causing unwanted concatenation of desktop lines.

Reported by Bastien Nocera in:
https://lists.gnu.org/archive/html/bug-gettext/2019-03/msg00017.html

* gettext-tools/src/read-desktop.c (desktop_lex): Properly handle
space characters before and after '='.
* gettext-tools/tests/msgfmt-desktop-1: Add a test case.
gettext-tools/src/read-desktop.c
gettext-tools/tests/msgfmt-desktop-1