From bb62287aaf3989d0f63ea21cd18a3f21ece33b7f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 30 Apr 2012 09:00:32 -0400 Subject: Use "C" locale for numbers to prevent formatting errors for French, German, etc. --- src/textadept.c | 2 ++ 1 file changed, 2 insertions(+) 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 #include #include #include @@ -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"); -- cgit v1.2.3