Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add setlocale in jmsg.c, to have traces not depending on the locale of the user
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Thu, 10 May 2012 13:06:32 +0000 (15:06 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Thu, 10 May 2012 13:06:32 +0000 (15:06 +0200)
src/jmsg.c

index 5b00966..49ac55f 100644 (file)
@@ -9,7 +9,7 @@
 #include <msg/msg.h>
 #include <simgrid/simix.h>
 #include <surf/surfxml_parse.h>
-
+#include <locale.h>
 
 #include "smx_context_java.h"
 
@@ -70,6 +70,8 @@ Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs)
 
   smx_factory_initializer_to_use = SIMIX_ctx_java_factory_init;
 
+  setlocale(LC_NUMERIC,"C");
+
   if (jargs)
     argc = (int) (*env)->GetArrayLength(env, jargs);