X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_restore.c;h=cc9b9c655b31a9c8da3198d223152ef4a86aa4ab;hp=32bfdebc47a8c4d60617643e60ca81e3a75fc0e0;hb=f7e067b75a9ed10d757c60ff1fda4f747b9ea26b;hpb=074e7a02198142cd0e270baae5dc4b42a942addb diff --git a/src/rrd_restore.c b/src/rrd_restore.c index 32bfdeb..cc9b9c6 100644 --- a/src/rrd_restore.c +++ b/src/rrd_restore.c @@ -1214,7 +1214,7 @@ int rrd_restore( char **argv) { rrd_t *rrd; - + char *old_locale; /* init rrd clean */ optind = 0; opterr = 0; /* initialize getopt */ @@ -1256,7 +1256,16 @@ int rrd_restore( return (-1); } +#ifdef HAVE_SETLOCALE + old_locale = setlocale(LC_NUMERIC, "C"); +#endif + rrd = parse_file(argv[optind]); + +#ifdef HAVE_SETLOCALE + setlocale(LC_NUMERIC, old_locale); +#endif + if (rrd == NULL) return (-1);