X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Frrd_dump.c;h=36a66b1d948ca1b52646d8a38627de6e321e4543;hb=refs%2Ftags%2Fupstream%2F1.4.8;hp=57bd0b8d278f431b78bcbfabc7f122aff84e095e;hpb=645054bac6187b0e83fd4125fd59e4feda216b64;p=pkg-rrdtool.git diff --git a/src/rrd_dump.c b/src/rrd_dump.c index 57bd0b8..36a66b1 100644 --- a/src/rrd_dump.c +++ b/src/rrd_dump.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 + * RRDtool 1.4.8 Copyright by Tobi Oetiker, 1997-2013 ***************************************************************************** * rrd_dump Display a RRD ***************************************************************************** @@ -45,9 +45,7 @@ #include "rrd_rpncalc.h" #include "rrd_client.h" -#ifdef HAVE_LOCALE_H #include -#endif #if !(defined(NETWARE) || defined(WIN32)) extern char *tzname[2]; @@ -105,9 +103,9 @@ int rrd_dump_cb_r( return (-1); } -#ifdef HAVE_SETLOCALE - old_locale = setlocale(LC_NUMERIC, "C"); -#endif + old_locale = setlocale(LC_NUMERIC, NULL); + setlocale(LC_NUMERIC, "C"); + if (opt_header == 1) { CB_PUTS("\n"); @@ -451,9 +449,7 @@ int rrd_dump_cb_r( rrd_free(&rrd); -#ifdef HAVE_SETLOCALE setlocale(LC_NUMERIC, old_locale); -#endif return rrd_close(rrd_file);