aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnisse Astier <anisse@astier.eu>2021-03-03 18:09:43 +0100
committerAlexey Gladkov <gladkov.alexey@gmail.com>2021-03-03 18:18:46 +0100
commit1be18aa62dc919b658a217e65e77f130105a9b0d (patch)
tree375852ad833b99278fdfe73fe796037b0b80fdd6
parent3cd7aa69eb63f1964e8f5580b42ae700fd3f8d3f (diff)
downloadkbd-1be18aa62dc919b658a217e65e77f130105a9b0d.tar.gz
src/libkeymap: better error message on unsupported unicode value
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 <anisse@astier.eu>
-rw-r--r--src/libkeymap/analyze.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libkeymap/analyze.l b/src/libkeymap/analyze.l
index 9e76eae9..4f9a6fa6 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