From: Tobias Oetiker Date: Wed, 24 Apr 2002 20:43:27 +0000 (+0000) Subject: fixed setlocale issues X-Git-Tag: 1.2rc1~209 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d891890746da037456bb4fed524acf5f2e66c211;p=thirdparty%2Frrdtool-1.x.git fixed setlocale issues git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@125 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2e6cb9f9..135a8a06 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -4,22 +4,23 @@ * rrd__graph.c make creates ne rrds ****************************************************************************/ -#if 0 -#include "rrd_tool.h" -#endif #include #ifdef WIN32 #include #include #endif + #ifdef HAVE_TIME_H #include #endif + #ifdef HAVE_LOCALE_H #include #endif +#include "rrd_tool.h" + #include "rrd_graph.h" #include "rrd_graph_helper.h" @@ -2515,7 +2516,7 @@ rrd_graph(int argc, char **argv, char ***prdata, int *xsize, int *ysize) tzset(); #endif #ifdef HAVE_SETLOCALE - setlocale(LC_ALL,""); + setlocale(LC_TIME,""); #endif