diff options
author | Sam Lantinga <slouken@libsdl.org> | 2022-04-27 18:45:54 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2022-05-15 10:26:44 +0300 |
commit | 2536713070967b98f9a8c934df108ec7c095b593 (patch) | |
tree | e2b8f691a7efd372e20bba0f791cc35ae87902a6 | |
parent | b064b60984fbbe019c8b173b26d1fcd0a4e4df04 (diff) | |
download | libxkbcommon-2536713070967b98f9a8c934df108ec7c095b593.tar.gz libxkbcommon-2536713070967b98f9a8c934df108ec7c095b593.tar.bz2 libxkbcommon-2536713070967b98f9a8c934df108ec7c095b593.zip |
Remove bogus euro sign entry from keysymtab
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 <contact@emersion.fr>
-rw-r--r-- | src/keysym-utf.c | 1 | ||||
-rw-r--r-- | test/keysym.c | 1 |
2 files changed, 1 insertions, 1 deletions
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)); |