[rrd-developers] getting rid of some of the LOCALE magic
Tobias Oetiker
tobi at oetiker.ch
Fri Sep 4 09:54:37 CEST 2009
People,
in rrd_graph I am calling
#ifdef HAVE_SETLOCALE
setlocale(LC_TIME, "");
#ifdef HAVE_MBSTOWCS
setlocale(LC_CTYPE, "");
#endif
#endif
this causes the locale settings to be reset to whatever the
coresponding environment variable sais ... this is nice when people
set the LC_* variable in the surrounding code ... but it cause
unexpected behaviour, if people use setlocale when calling rrdtool
as a library ...
I think about dropping the calls for 1.4 ... what do you think ?
cheers
tobi
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-developers
mailing list