summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5a9fc2d)
raw | patch | inline | side by side (parent: 5a9fc2d)
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) |
program/src/rrd_tool.c | patch | blob | history |
diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 1e635fd1c80183d25ce46af2efa136d15f2c0ee6..af55f1e53ec342fbc9932753cb49a67504ca76b3 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/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) {