diff options
-rw-r--r-- | file.c | 2 | ||||
-rw-r--r-- | parse-xml.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -197,7 +197,7 @@ static int try_to_open_csv(const char *filename, struct memblock *mem, enum csv_ struct sample *sample; errno = 0; - val = strtod(p,&end); + val = g_ascii_strtod(p,&end); if (end == p) break; if (errno) diff --git a/parse-xml.c b/parse-xml.c index 5159a334f..59e9278ad 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -294,7 +294,7 @@ static enum number_type integer_or_float(char *buffer, union int_or_float *res) /* Looks like it might be floating point? */ if (*end == '.') { errno = 0; - fp = strtod(buffer, &end); + fp = g_ascii_strtod(buffer, &end); if (!errno) { res->fp = fp; return FLOAT; |