Do not mess with the locale settings. The main program takes care of that (rrd_tool...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 4 Oct 2009 12:00:23 +0000 (12:00 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 4 Oct 2009 12:00:23 +0000 (12:00 +0000)
We do call setlocale on LC_NUMERIC a few times to get predictable number formats when parsing strings into floats, but apart from that the code is
written in a portable manner and can take whatever the local system supports.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1932 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 2df1835..d1f32dd 100644 (file)
@@ -4004,12 +4004,7 @@ void rrd_graph_init(
 #ifdef HAVE_TZSET
     tzset();
 #endif
-#ifdef HAVE_SETLOCALE
-    setlocale(LC_TIME, "");
-#ifdef HAVE_MBSTOWCS
-    setlocale(LC_CTYPE, "");
-#endif
-#endif
+
     im->base = 1000;
     im->daemon_addr = NULL;
     im->draw_x_grid = 1;