projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow the grid on:off pattern to be configured
[rrdtool.git]
/
src
/
rrd_restore.c
diff --git
a/src/rrd_restore.c
b/src/rrd_restore.c
index
32bfdeb
..
fc6f17b
100644
(file)
--- a/
src/rrd_restore.c
+++ b/
src/rrd_restore.c
@@
-14,7
+14,7
@@
#include <string.h>
#include <libxml/parser.h>
#include <libxml/xmlreader.h>
#include <string.h>
#include <libxml/parser.h>
#include <libxml/xmlreader.h>
-
+#include <locale.h>
#ifndef WIN32
# include <unistd.h> /* for off_t */
#ifndef WIN32
# include <unistd.h> /* for off_t */
@@
-1214,7
+1214,7
@@
int rrd_restore(
char **argv)
{
rrd_t *rrd;
char **argv)
{
rrd_t *rrd;
-
+ char *old_locale;
/* init rrd clean */
optind = 0;
opterr = 0; /* initialize getopt */
/* init rrd clean */
optind = 0;
opterr = 0; /* initialize getopt */
@@
-1256,7
+1256,16
@@
int rrd_restore(
return (-1);
}
return (-1);
}
+#ifdef HAVE_SETLOCALE
+ old_locale = setlocale(LC_NUMERIC, "C");
+#endif
+
rrd = parse_file(argv[optind]);
rrd = parse_file(argv[optind]);
+
+#ifdef HAVE_SETLOCALE
+ setlocale(LC_NUMERIC, old_locale);
+#endif
+
if (rrd == NULL)
return (-1);
if (rrd == NULL)
return (-1);