From: oetiker Date: Sun, 4 Oct 2009 12:00:23 +0000 (+0000) Subject: Do not mess with the locale settings. The main program takes care of that (rrd_tool... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5dc0ebee20dbe391f0d5dd860426912261f6d33;p=rrdtool-all.git Do not mess with the locale settings. The main program takes care of that (rrd_tool.c calls setlocale(LC_ALL,"") already. 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@1932 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 2df1835d..d1f32ddc 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -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;