diff --git a/luaa.c b/luaa.c index aeaba9cd1..66c331aa1 100644 --- a/luaa.c +++ b/luaa.c @@ -77,7 +77,7 @@ #include #include -#include "xkb_utf32_to_keysym.c" +#include "xkb_utf32_to_keysym_compat.c" #include /* for gethostname() */ @@ -489,7 +489,7 @@ luaA_get_key_name(lua_State *L) keysym = keysyms[0]; } else if ((ucs = one_utf8_to_utf32(input, length)) > 0) //syntax #2 - keysym = xkb_utf32_to_keysym(ucs); + keysym = xkb_utf32_to_keysym_compat(ucs); else //syntax #3 keysym = xkb_keysym_from_name(input, XKB_KEYSYM_NO_FLAGS); diff --git a/xkb_utf32_to_keysym.c b/xkb_utf32_to_keysym_compat.c similarity index 99% rename from xkb_utf32_to_keysym.c rename to xkb_utf32_to_keysym_compat.c index b635ff165..8e0360827 100644 --- a/xkb_utf32_to_keysym.c +++ b/xkb_utf32_to_keysym_compat.c @@ -839,7 +839,7 @@ static const struct codepair keysymtab[] = { { 0x20ac, 0x20ac }, /* EuroSign € EURO SIGN */ }; -static xkb_keysym_t xkb_utf32_to_keysym(uint32_t ucs) +static xkb_keysym_t xkb_utf32_to_keysym_compat(uint32_t ucs) { /* first check for Latin-1 characters (1:1 mapping) */ if ((ucs >= 0x0020 && ucs <= 0x007e) ||