A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add setlocale in jmsg.c, to have traces not depending on the locale of the user
[simgrid.git]
/
src
/
jmsg.c
diff --git
a/src/jmsg.c
b/src/jmsg.c
index
5b00966
..
49ac55f
100644
(file)
--- a/
src/jmsg.c
+++ b/
src/jmsg.c
@@
-9,7
+9,7
@@
#include <msg/msg.h>
#include <simgrid/simix.h>
#include <surf/surfxml_parse.h>
#include <msg/msg.h>
#include <simgrid/simix.h>
#include <surf/surfxml_parse.h>
-
+#include <locale.h>
#include "smx_context_java.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;
smx_factory_initializer_to_use = SIMIX_ctx_java_factory_init;
+ setlocale(LC_NUMERIC,"C");
+
if (jargs)
argc = (int) (*env)->GetArrayLength(env, jargs);
if (jargs)
argc = (int) (*env)->GetArrayLength(env, jargs);