Workaround for bug in libxkbcommon/Debian/Ubuntu on en_IN locale
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903373
This commit is contained in:
parent
625f0f77bb
commit
a920919b13
4
glfw/xkb_glfw.c
vendored
4
glfw/xkb_glfw.c
vendored
@ -384,6 +384,10 @@ load_compose_tables(_GLFWXKBData *xkb) {
|
|||||||
if (!locale) locale = getenv("LC_CTYPE");
|
if (!locale) locale = getenv("LC_CTYPE");
|
||||||
if (!locale) locale = getenv("LANG");
|
if (!locale) locale = getenv("LANG");
|
||||||
if (!locale) locale = "C";
|
if (!locale) locale = "C";
|
||||||
|
|
||||||
|
// See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903373
|
||||||
|
if (strcmp(locale, "en_IN") == 0) locale = "en_IN.UTF-8";
|
||||||
|
|
||||||
compose_table = xkb_compose_table_new_from_locale(xkb->context, locale, XKB_COMPOSE_COMPILE_NO_FLAGS);
|
compose_table = xkb_compose_table_new_from_locale(xkb->context, locale, XKB_COMPOSE_COMPILE_NO_FLAGS);
|
||||||
if (!compose_table) {
|
if (!compose_table) {
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to create XKB compose table for locale %s", locale);
|
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to create XKB compose table for locale %s", locale);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user