summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 860f436)
raw | patch | inline | side by side (parent: 860f436)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 20 Oct 2009 19:25:33 +0000 (19:25 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 20 Oct 2009 19:25:33 +0000 (19:25 +0000) |
program/src/rrd_restore.c | patch | blob | history |
index c5cbcd2dffae485242236e9bd7793dd45054a604..bd72ebbc25d19bbfd56bc3489117475dcc35a3b7 100644 (file)
char **argv)
{
rrd_t *rrd;
+ char* old_locale;
#ifdef WIN32
srand((unsigned int) time(NULL));
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);