X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_tool.c;h=af55f1e53ec342fbc9932753cb49a67504ca76b3;hp=1e635fd1c80183d25ce46af2efa136d15f2c0ee6;hb=70e8cbad19670d37734b3f36ea2308288ec193a2;hpb=62cc2872aa936cbf4683da1a4f01c8fb29ed6a27 diff --git a/src/rrd_tool.c b/src/rrd_tool.c index 1e635fd..af55f1e 100644 --- a/src/rrd_tool.c +++ b/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) {