From 921d0fc99df63031b0d183c82f510e6e97f24a30 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 4 Oct 2009 12:00:23 +0000 Subject: [PATCH] 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 --- src/rrd_graph.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2df1835..d1f32dd 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; -- 2.30.2