author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 8 Sep 2010 12:15:13 +0000 (12:15 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 8 Sep 2010 12:15:13 +0000 (12:15 +0000) | ||
commit | 6625a75eac0d738566b3c38f7110c4a35afa4b98 | |
tree | affa9577bc6f2c558e0fa70ba46d643645223204 | tree | snapshot |
parent | 68d434a2477ce048ecbca94ff06da00c6f8e3a36 | commit | diff |
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/branches/1.3/program@2127 a5681a0c-68f1-0310-ab6d-d61299d08faa
- 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/branches/1.3/program@2127 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_create.c | diff | blob | history | |
src/rrd_dump.c | diff | blob | history | |
src/rrd_graph.c | diff | blob | history | |
src/rrd_rpncalc.c | diff | blob | history | |
src/rrd_tool.c | diff | blob | history | |
src/rrd_tune.c | diff | blob | history | |
src/rrd_update.c | diff | blob | history |