From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=astier-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ctISCRQVgcpXSS/lcMKdt70LkoYKlvPXO7EwDKXZx8k=; b=K/gGEH20ezxQD+poBun86pbR1e80JDLnU2abOOvSQuMt11KipNh9vYjso4aXlNEye6 KIPk6ug8mGYb1Tqo9iDvJmlJneWWGYpVKEmmfHySNdyjFwl94Q0TwI4WpiOVmloHz/sX 3ou4G/n4FV4tw92KSntYSu0F67YO91+LBW2ey+/p7J3RuOBvdAEKHmxSs68LvXZlk3FX cRp/rez5FeRh3iQ8fUXwYGM7gtSu0zs07DUtmbt88ekBp8H5agTui5G06rbpUXGWzp88 KDW0QGwgNOUf07pYrFrHA9CWeyv42qCFHbiaAJVjl5EHg96zWOEE5nDKQy7ijK9X0wdT OoLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ctISCRQVgcpXSS/lcMKdt70LkoYKlvPXO7EwDKXZx8k=; b=Pyja2gXrnteJ6GLAJeg6hx5X3NYzhie+eOFqS2JQexQIbjeITU07IwunD0hiWHLH8Z 6sJzPBVPg4zyOw9+rCUwhTq2Ri05S1OaC0GvsSEFCsrVln+Lh1rWnViED8xnssPsDeiY rw2Xtnz0MG1jxQASlzOwqFnnPBpqVPNQwkq1T1Vr7T5NmmdaUpP+h2pecoNoNCncP967 6y0GV0jeofU4QSn2CYr4a7EqvHU4TU7159cJ8qWq/tAXn/dqQ0rWjr3gnd3heNZLtIPv gQJuWAhYJwh1U05j3pMbjD0l3pmSEqdgDkg/+Jk9HW6g810MBb7Jb435PAMZOlysR9Lw kCVQ== X-Gm-Message-State: AOAM530urp32t+sKaikY05onCrxK5SeytoEuKIeD3jq/Be20idTF+JX1 y//itsYP7KRDYVgvSVkzBY/qTMOQN1WfBsI9 X-Google-Smtp-Source: ABdhPJyE5JtpYxzJuX6bah7vCZ5xc5w6rtTowrQ5FvLlJvpz0Yv1QLKaJ0k1fbQXQwBuIDVGp6hijw== X-Received: by 2002:adf:b355:: with SMTP id k21mr28484362wrd.156.1614791399363; Wed, 03 Mar 2021 09:09:59 -0800 (PST) From: Anisse Astier To: kbd@lists.altlinux.org Date: Wed, 3 Mar 2021 18:09:43 +0100 Message-Id: <20210303170943.28797-1-anisse@astier.eu> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210302004727.kcmcofcmw6ki5atc@example.org> References: <20210302004727.kcmcofcmw6ki5atc@example.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Alexey Gladkov Subject: [kbd] [PATCH] src/libkeymap: better error message on unsupported unicode value X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2021 17:10:03 -0000 Archived-At: List-Archive: The auto-generated (with ckbcomp) file fr-bepo_afnor did not load (even partially), because of an U+1f12f (copyleft symbol) that is wrongly parsed, generating this error message: too many (160) entries on one line Fix libkeymap so that the symbol can be parsed, and later generate a better error message: unicode keysym out of range: U+1f12f At least users will know what is wrong with their keymap. Signed-off-by: Anisse Astier --- src/libkeymap/analyze.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkeymap/analyze.l b/src/libkeymap/analyze.l index 9e76eae..4f9a6fa 100644 --- a/src/libkeymap/analyze.l +++ b/src/libkeymap/analyze.l @@ -319,7 +319,7 @@ Include include[ \t]* Decimal [1-9][0-9]* Octal 0[0-7]* Hex 0[xX][0-9a-fA-F]+ -Unicode U\+([0-9a-fA-F]){4} +Unicode U\+([0-9a-fA-F]){4,6} Literal [a-zA-Z][a-zA-Z_0-9]* Octa ([0-7]){1,3} Charset charset|Charset|CharSet|CHARSET -- 2.29.2