]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
fix use of setlocale all over the place ...
authorTobias Oetiker <tobi@oetiker.ch>
Wed, 8 Sep 2010 12:15:13 +0000 (12:15 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 8 Sep 2010 12:15:13 +0000 (12:15 +0000)
commitc1c65bc4c4b2b25a71f39804bc728c9bf5e09821
tree6515de675c5568aed76641bdb02baaa4a609f900
parent89785404f00dc696f4ee9352a5b866eb5ecb69da
fix use of setlocale all over the place ...

-    old_locale = setlocale(LC_NUMERIC, "C");
+    old_locale = setlocale(LC_NUMERIC, NULL);
+    setlocale(LC_NUMERIC, "C");

the original version never restored the locale since it held a copy of the
new locale and not the old one despite the name. bug found by  Pawe? 'Reef' Polewicz

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2127 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_create.c
src/rrd_dump.c
src/rrd_graph.c
src/rrd_rpncalc.c
src/rrd_tool.c
src/rrd_tune.c
src/rrd_update.c