From: Samuel Lepetit Date: Thu, 10 May 2012 13:06:32 +0000 (+0200) Subject: Add setlocale in jmsg.c, to have traces not depending on the locale of the user X-Git-Tag: v3_9_90~569^2~19^2~88 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3554f61d43635e7736ada57d5db96537c0766bf0 Add setlocale in jmsg.c, to have traces not depending on the locale of the user --- diff --git a/src/jmsg.c b/src/jmsg.c index 5b0096639d..49ac55fdd0 100644 --- a/src/jmsg.c +++ b/src/jmsg.c @@ -9,7 +9,7 @@ #include #include #include - +#include #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);