From 97647b2264a3e775b51ada5e968e65b25b205640 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 18 Mar 2016 22:08:43 +0100 Subject: [PATCH] Fixed: Set numeric locale in CApplicationContext --HG-- branch : develop --- code/nel/src/misc/app_context.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/nel/src/misc/app_context.cpp b/code/nel/src/misc/app_context.cpp index 2383fcda5..5206681f9 100644 --- a/code/nel/src/misc/app_context.cpp +++ b/code/nel/src/misc/app_context.cpp @@ -19,6 +19,8 @@ #include "nel/misc/dynloadlib.h" #include "nel/misc/command.h" +#include + #ifdef DEBUG_NEW #define new DEBUG_NEW #endif @@ -85,6 +87,9 @@ void INelContext::contextReady() _NelContext = this; *(_getInstance()) = this; + // set numeric locale to C to avoid the use of decimal separators different of a dot + char *locale = setlocale(LC_NUMERIC, "C"); + // register any pending thinks // register local instance counter in the global instance counter manager