mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 21:14:35 +00:00
Documented C locale hack.
This commit is contained in:
parent
d493a82f9e
commit
e8f8ec027d
@ -714,6 +714,8 @@ Cursor _glfwCreateCursor(const GLFWimage* image, int xhot, int yhot)
|
||||
|
||||
int _glfwPlatformInit(void)
|
||||
{
|
||||
// HACK: If the current locale is C, apply the environment's locale
|
||||
// This is done because the C locale breaks character input
|
||||
if (strcmp(setlocale(LC_CTYPE, NULL), "C") == 0)
|
||||
setlocale(LC_CTYPE, "");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user