From: oetiker Date: Sun, 15 Nov 2009 10:51:10 +0000 (+0000) Subject: Switch LC_NUMERIC to C prior to creating rrd_xport output. This makes sure that numbe... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f907f2e9ce2ec49e6847f1e28ea479e7eb51a2c;hp=5a9fc2d44dce9afa551885da1b70d5fb6f8ec941;p=rrdtool-all.git Switch LC_NUMERIC to C prior to creating rrd_xport output. This makes sure that numbers are always output with a . and not with a , git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1968 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index 1e635fd1..af55f1e5 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -712,6 +712,7 @@ int HandleInputLine( 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("\n\n", @@ -764,6 +765,7 @@ int HandleInputLine( free(data); printf(" \n", DATA_TAG); printf("\n", ROOT_TAG); + setlocale(LC_NUMERIC, old_locale); } free(vtag); } else if (strcmp("graph", argv[1]) == 0) {