浏览代码

Documented C locale hack.

Camilla Berglund 10 年之前
父节点
当前提交
e8f8ec027d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/x11_init.c

+ 2 - 0
src/x11_init.c

@@ -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, "");