X11: Fix CJK IME input when locale CTYPE is "C"

Fixes #1587.
Fixes #1636.

(cherry picked from commit 4381b86b6b)
This commit is contained in:
Camilla Löwy
2020-02-06 15:46:37 +01:00
parent d99249337e
commit 0ac013381b
3 changed files with 9 additions and 8 deletions

View File

@@ -1753,6 +1753,10 @@ typedef struct GLFWgamepadstate
* bundle, if present. This can be disabled with the @ref
* GLFW_COCOA_CHDIR_RESOURCES init hint.
*
* @remark @x11 This function will set the `LC_CTYPE` category of the
* application locale according to the current environment if that category is
* still "C". This is because the "C" locale breaks Unicode text input.
*
* @thread_safety This function must only be called from the main thread.
*
* @sa @ref intro_init