summaryrefslogtreecommitdiffstats
path: root/src/libs/client/DeprecatedLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/DeprecatedLoader.cpp')
-rw-r--r--src/libs/client/DeprecatedLoader.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/client/DeprecatedLoader.cpp b/src/libs/client/DeprecatedLoader.cpp
index 8c8d3936..b193c86f 100644
--- a/src/libs/client/DeprecatedLoader.cpp
+++ b/src/libs/client/DeprecatedLoader.cpp
@@ -94,7 +94,14 @@ DeprecatedLoader::add_variable(GraphObject::Variables& data, string old_key, str
// Hack to make module-x and module-y set as floats
char* c_val = strdup(value.c_str());
char* endptr = NULL;
+
+ // FIXME: locale kludges
+ char* locale = strdup(setlocale(LC_NUMERIC, NULL));
+
float fval = strtof(c_val, &endptr);
+
+ setlocale(LC_NUMERIC, locale);
+ free(locale);
if (endptr != c_val && *endptr == '\0')
data[key] = Atom(fval);