mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 16:08:44 +00:00
Fixed: Set numeric locale in CApplicationContext
--HG-- branch : develop
This commit is contained in:
parent
d7121b4b7a
commit
97647b2264
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,8 @@
|
|||
#include "nel/misc/dynloadlib.h"
|
||||
#include "nel/misc/command.h"
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue