Package: vnstat
Version: 1.10-0.1
Severity: minor

New version of vnstat introduces --locale option, which is responsible
on data presentation - it mostly deals with datas.

Default config file states that locale to use are '-', which means "use
system default". But it seems not to working.

v+
mi...@pingwin ~ ]:-> locale
LANG=pl_PL.UTF-8
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=
mi...@pingwin ~ ]:-> vnstat -d |awk 'NR==8 {print}'
      02/01/10     46.25 MiB |    7.08 MiB |   53.33 MiB |    5.06 kbit/s
mi...@pingwin ~ ]:-> vnstat --locale pl_PL.UTF-8 -d |awk 'NR==8 {print}'
     01.02.2010    46,25 MiB |    7,08 MiB |   53,33 MiB |    5,06 kbit/s
v-

As you can see, my default locales are pl_PL.UTF-8. But vnstat without
--locale option specified and with it outputs dates in completely
different format.

I am not programmer, so I could not find where the bug is. I thought
that maybe vnstat reads config only once, while starting the deamon
(and locale are set to C at that time, and are changed later), but
adding LC_ALL=pl_PL.UTF-8 to /etc/init.d/vnstat and restarting the
daemon does not changes anything.

Maybe this is not a bug at all and I just misunderstand vnstat
funcionality. But I think that - if vnstat is able to change locale at
run time - it should do it as user expects, and right now it does not.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-486
Locale: LANG=pl_PL.UTF8, LC_CTYPE=pl_PL.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vnstat depends on:
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib

vnstat recommends no packages.

Versions of packages vnstat suggests:
pn  vnstati                       <none>     (no description available)

-- no debconf information



-- 
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