This patch adds support for Unicode symbols in keymap files. This feature was already used in some keyboard layouts in QEMU generated from XKB (e.g. Arabic) but it wasn't implemented in QEMU source code.
Signed-off-by: Jan Krupa <jkr...@suse.com> --- ui/keymaps.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ui/keymaps.c b/ui/keymaps.c index f373cc5..426a893 100644 --- a/ui/keymaps.c +++ b/ui/keymaps.c @@ -33,6 +33,9 @@ static int get_keysym(const name2keysym_t *table, if (!strcmp(p->name, name)) return p->keysym; } + if (strlen(name) == 5 && name[0] == 'U') { + return (int)strtol(name + 1, NULL, 16); + } return 0; } -- 1.6.0.2