From 2536713070967b98f9a8c934df108ec7c095b593 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 27 Apr 2022 18:45:54 +0200 Subject: Remove bogus euro sign entry from keysymtab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure what it's doing here, but converting "€" to a keysym doesn't work with this entry. 0x13a4 doesn't appear in xkbcommon-keysyms.h. 0x20ac is the keysym documented in the header (and it's the last entry in the table). It's been in the table since it was introduced in e0524296d2e0 ("Add API for getting unicode representation of a keysym"). Co-authored-by: Simon Ser --- src/keysym-utf.c | 1 - test/keysym.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keysym-utf.c b/src/keysym-utf.c index 7769672..3d1950a 100644 --- a/src/keysym-utf.c +++ b/src/keysym-utf.c @@ -819,7 +819,6 @@ static const struct codepair keysymtab[] = { { 0x0ef9, 0x11f0 }, /* Hangul_J_KkogjiDalrinIeung ᇰ HANGUL JONGSEONG YESIEUNG */ { 0x0efa, 0x11f9 }, /* Hangul_J_YeorinHieuh ᇹ HANGUL JONGSEONG YEORINHIEUH */ { 0x0eff, 0x20a9 }, /* Korean_Won ₩ WON SIGN */ - { 0x13a4, 0x20ac }, /* Euro € EURO SIGN */ { 0x13bc, 0x0152 }, /* OE Œ LATIN CAPITAL LIGATURE OE */ { 0x13bd, 0x0153 }, /* oe œ LATIN SMALL LIGATURE OE */ { 0x13be, 0x0178 }, /* Ydiaeresis Ÿ LATIN CAPITAL LETTER Y WITH DIAERESIS */ diff --git a/test/keysym.c b/test/keysym.c index 2c98c24..38f967d 100644 --- a/test/keysym.c +++ b/test/keysym.c @@ -252,6 +252,7 @@ main(void) assert(test_utf32_to_keysym(0xd7, XKB_KEY_multiply)); assert(test_utf32_to_keysym('-', XKB_KEY_minus)); assert(test_utf32_to_keysym(0x10fffd, 0x110fffd)); + assert(test_utf32_to_keysym(0x20ac, XKB_KEY_EuroSign)); // Unicode non-characters assert(test_utf32_to_keysym(0xfdd0, XKB_KEY_NoSymbol)); -- cgit v1.2.1