From e6a77a185a35fd52dd80db71b120f6538a346e44 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 16 Jan 2015 19:01:34 +0900 Subject: desktop: Avoid useless warning for group header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by Marek Černocký at: * gettext-tools/src/read-desktop.c (desktop_lex): Fix "invalid non-blank character" check after reading a group header. * gettext-tools/tests/xgettext-desktop-1: Check "invalid non-blank character" warning. --- gettext-tools/tests/xgettext-desktop-1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gettext-tools/tests/xgettext-desktop-1') diff --git a/gettext-tools/tests/xgettext-desktop-1 b/gettext-tools/tests/xgettext-desktop-1 index ae90879..c6f9df1 100755 --- a/gettext-tools/tests/xgettext-desktop-1 +++ b/gettext-tools/tests/xgettext-desktop-1 @@ -26,6 +26,19 @@ EOF (LANGUAGE= LC_ALL=C ${XGETTEXT} --add-comments -o - err3.desktop 2>&1; exit) | grep "invalid non-blank line" || exit 1 +cat <<\EOF >err4.desktop +[Desktop Entry]a +EOF + +(LANGUAGE= LC_ALL=C ${XGETTEXT} --add-comments -o - err4.desktop 2>&1; exit) | grep "invalid non-blank character" || exit 1 + +# gettext 0.19.4 issued an baseless warning of this. +cat <<\EOF >ok4.desktop +[Desktop Entry] +EOF + +(LANGUAGE= LC_ALL=C ${XGETTEXT} --add-comments -o - ok4.desktop 2>&1; exit) | grep "invalid non-blank character" && exit 1 + cat <<\EOF > xg.desktop [Desktop Entry] Type=Application -- cgit v1.1