summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc78d8f)
raw | patch | inline | side by side (parent: fc78d8f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 15 Nov 2009 10:51:10 +0000 (10:51 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 15 Nov 2009 10:51:10 +0000 (10:51 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1968 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index cd27b5fde634d5c37f33edb706c80a4b79e2957a..a733e55342120320256d3f3111fb79824a28505a 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
if (rrd_xport
(argc - 1, &argv[1], &xxsize, &start, &end, &step, &col_cnt,
&legend_v, &data) != -1) {
+ char *old_locale = setlocale(LC_NUMERIC, "C");
row_cnt = (end - start) / step;
ptr = data;
printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n\n",
free(data);
printf(" </%s>\n", DATA_TAG);
printf("</%s>\n", ROOT_TAG);
+ setlocale(LC_NUMERIC, old_locale);
}
free(vtag);
+
} else if (strcmp("graph", argv[1]) == 0) {
char **calcpr;