summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d754fa6)
raw | patch | inline | side by side (parent: d754fa6)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 4 Oct 2009 12:00:23 +0000 (12:00 +0000) | ||
committer | oetiker <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
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 | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 2df1835d1b4764e25b4d2bbd0f7d25a0c6bfa184..d1f32ddcb650838f6022d6386d79edf81d496a0e 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
#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;