From 378e64324e7993db457f1c2ac65d44fc7aaf537e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 13 Apr 2020 13:11:15 +0200 Subject: [PATCH] desktop: Small parser fix. * gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control characters in group names. --- gettext-tools/src/read-desktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gettext-tools/src/read-desktop.c b/gettext-tools/src/read-desktop.c index 4de134f3c..50ed32e92 100644 --- a/gettext-tools/src/read-desktop.c +++ b/gettext-tools/src/read-desktop.c @@ -257,7 +257,7 @@ desktop_lex (token_ty *tp) default: /* 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); continue; -- 2.47.2