* Bug #14524 fixed - Numeric locales were not set to standard "C" by default at scila...
[scilab.git] / scilab / modules / core / src / c / InitScilab.c
index bc307ec..3c1a3e8 100644 (file)
@@ -11,6 +11,7 @@
  */
 #include "InitScilab.h"
 #include "InitializeCore.h"
+#include "locale.h"
 #include "../../../console/includes/InitializeConsole.h"
 #include "../../../tclsci/includes/InitializeTclTk.h"
 #include "../../../localization/includes/InitializeLocalization.h"
@@ -49,6 +50,9 @@ int C2F(initscilab) (void)
         loadGraphicModule();
     }
 
+    // set default (English) locale after JVM which may set its own locale
+    setlocale(LC_NUMERIC, "C");
+
     /* Initialize console: lines... */
     InitializeConsole();