From: Bruno Haible Date: Sun, 25 Aug 2019 09:46:48 +0000 (+0200) Subject: desktop: Small parser fix. X-Git-Tag: v0.21~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942c765cf7334bef713f555093af230781ba7290;p=thirdparty%2Fgettext.git desktop: Small parser fix. * gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control characters in group names. --- diff --git a/gettext-tools/src/read-desktop.c b/gettext-tools/src/read-desktop.c index 31d4c851d..9ca6fdbd5 100644 --- a/gettext-tools/src/read-desktop.c +++ b/gettext-tools/src/read-desktop.c @@ -263,7 +263,7 @@ desktop_lex (token_ty *tp) } /* Group names may contain all ASCII characters except for '[' and ']' and control characters. */ - if (!(c_isascii (c) && c != '[') && !c_iscntrl (c)) + if (!(c_isascii (c) && c != '[' && !c_iscntrl (c))) break; APPEND (c); }