Sep 4 Florian Forster wrote:

> Hi,
>
> 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.

cheers
tobi

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-developers mailing list
rrd-developers@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to