index cc2861f3f82f41b201e44e296fa4e75838719061..c58326fa9c4cddb7fb7f620eca377125db79b092 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
#include <io.h>
#include <fcntl.h>
#endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
#include "rrd_graph.h"
#include "rrd_graph_helper.h"
{
image_desc_t im;
+#ifdef HAVE_TZSET
+ tzset();
+#endif
+#ifdef HAVE_SETLOCALE
+ setlocale(LC_ALL,"");
+#endif
+
+
rrd_graph_init(&im);
rrd_graph_options(argc,argv,&im);