xkbcomp: handle empty keymaps
authorRan Benita <ran234@gmail.com>
Thu, 1 Aug 2013 17:24:27 +0000 (20:24 +0300)
committerRan Benita <ran234@gmail.com>
Fri, 2 Aug 2013 08:39:39 +0000 (11:39 +0300)
commite731b2514b96fcf92513c3f680a84666c0de3173
treeff344c4bf15b5d62fa85847dba6667d5d843c566
parentd2383d385252d2bf583e9d56a31bb62490fa5cb6
xkbcomp: handle empty keymaps

We should handle empty xkb_keycode and xkb_symbol sections, since
xkbcomp handles them, and apparently XQuartz uses it. There are also
files for it in xkeyboard-config (rules=base model=empty layout=empty,
which translate to keycodes/empty and symbols/empty).

https://bugs.freedesktop.org/show_bug.cgi?id=67654

Reported-By: Gatis Paeglis <gatis.paeglis@digia.com>
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/keycodes.c
src/xkbcomp/symbols.c
test/data/keycodes/empty [new file with mode: 0644]
test/data/symbols/empty [new file with mode: 0644]
test/data/sync.sh
test/rulescomp.c