aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/godot_x11.cpp
diff options
context:
space:
mode:
authorJia Wang2017-06-27 17:26:43 +0800
committerJia Wang2017-06-29 19:26:06 +0800
commit098a888ec0594383bdc16c27ea6ecc1b29ecd81b (patch)
tree623e4dbfca7efb6f6c3235d7d5bae3e8318695b6 /platform/x11/godot_x11.cpp
parent198bd9db02950d261c83b0c383fe737df3c5f152 (diff)
downloadgodot-098a888ec0594383bdc16c27ea6ecc1b29ecd81b.tar.gz
godot-098a888ec0594383bdc16c27ea6ecc1b29ecd81b.tar.zst
godot-098a888ec0594383bdc16c27ea6ecc1b29ecd81b.zip
Diffstat (limited to 'platform/x11/godot_x11.cpp')
-rw-r--r--platform/x11/godot_x11.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/x11/godot_x11.cpp b/platform/x11/godot_x11.cpp
index b293b1beb..6f418b213 100644
--- a/platform/x11/godot_x11.cpp
+++ b/platform/x11/godot_x11.cpp
@@ -28,6 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include <limits.h>
+#include <locale.h>
#include <stdlib.h>
#include <unistd.h>
@@ -38,6 +39,8 @@ int main(int argc, char *argv[]) {
OS_X11 os;
+ setlocale(LC_CTYPE, "");
+
char *cwd = (char *)malloc(PATH_MAX);
getcwd(cwd, PATH_MAX);