[rrd-developers] getting rid of some of the LOCALE magic
tobi at oetiker.ch
Sun Oct 4 13:54:37 CEST 2009
Sep 4 Florian Forster wrote:
> On Fri, Sep 04, 2009 at 09:54:37AM +0200, Tobias Oetiker wrote:
> > 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'm basically anti-magic. I think the expected behavior would be to
> honor the environment when run from the command line and not to change
> the existing locale setting when called as a library. I'd therefore move
> that code from the ?librrd? library to the ?rrdtool? application.
:-) there we already have a setlocale LC_ALL so this should be
taken care off.
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