From: Tobias 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-Tag: 1.4.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95df4d9956123ddb18e05bcb6f3939132d8df96d;p=thirdparty%2Frrdtool-1.x.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/program@1932 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2df1835d..d1f32ddc 100644 --- a/src/rrd_graph.c +++ b/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;