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 | 12173194711abe6205339f350cd9aa2a75acc467 | |
tree | f1f77885de73d51dd66d27ba4c8ecdbcc426d70c | tree | snapshot |
parent | f74d29c73d972da40e4ec151b1134a04f0ff8cc7 | 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.4/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.4/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 |