2010/3/10, Teemu Toivola <t...@iki.fi>:

> If the "Locale" setting in the configuration file is set to "-" then vnstat
> will use the value in the LC_ALL variable as described in the configuration
> file comment and the man page. Your 'locale' output shows that LC_ALL isn't
> set so vnstat will use an empty value resulting in some default formatting.

Oh, right... my mistake. I was absolutely sure that my LC_ALL is set, as I had:

mi...@pingwin ~ ]:-> grep -i lc_all ~/.bashrc
LC_ALL="pl_PL.UTF-8"

But it seems that LC_ALL variable has to be exported to take effect.

Sorry for bothering everyone.

> The daemon doesn't care about the locale setting. It only collects the data
> and saves it to the database without any locale information. That's why
> modifying the locale setting in /etc/init.d/vnstat will not affect the
> output of the vnstat command itself.

Yes, that sounds reasonable for me. But as I couldn't find any better
reason, I came up with that one.

Sorry again. It is and was not a bug, just my mistake.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to