aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c
index b5c477b9..b59f169e 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1,5 +1,6 @@
// Copyright 2007-2012 Mitchell mitchell.att.foicica.com. See LICENSE.
+#include <locale.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -176,6 +177,7 @@ int main(int argc, char **argv) {
if (!registered || !g_application_get_is_remote(app) || force) {
#endif
+ setlocale(LC_NUMERIC, "C");
if (lua = luaL_newstate(), !lL_init(lua, argc, argv, FALSE)) return 1;
new_window();
lL_dofile(lua, "init.lua");