Re: Bug#539481: coreutils: [df] Please use DOT instead of COMMA in -h (h
From:
James Youngman
Subject:
Re: Bug#539481: coreutils: [df] Please use DOT instead of COMMA in -h (human readable) size listing
Date:
Sat, 1 Aug 2009 14:07:07 +0100
On Sat, Aug 1, 2009 at 10:58 AM, Jari Aalto<address@hidden> wrote:
> Package: coreutils
> Version: 7.4-2
> Severity: wishlist
>
>
> [Debian Bug / wishlist]
>
> $ df -hl | grep usb
>
> Â /dev/sdb1 Â Â Â Â Â Â 3,9G Â 3,9G Â 96K 100% /media/usb0
> Â /dev/sdc1 Â Â Â Â Â Â 3,8G Â 4,0K Â 3,8G Â 1% /media/usb1
>
> SUGGESTION
>
> Please prefer representing fractional values in computer-dot notation:
>
> Â /dev/sdb1 Â Â Â Â Â Â 3.9G Â 3.9G Â 96K 100% /media/usb0
> Â /dev/sdc1 Â Â Â Â Â Â 3.8G Â 4.0K Â 3.8G Â 1% /media/usb1
But you chose to use the comma yourself - by selecting your locale.
If you want to use "." as the decimal radix marker, just delect an
appropriate locale:
$ LC_ALL=C df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mirror_a-home
9.9G 7.8G 1.6G 84% /home
$ LC_ALL=es_ES df -h .
S.ficheros Tama�o Usado Disp Uso% Montado en
/dev/mapper/mirror_a-home
9,9G 7,8G 1,6G 84% /home
$ LC_MESSAGES=es_ES LC_NUMERIC=C df -h .
S.ficheros Tamaño Usado Disp Uso% Montado en
/dev/mapper/mirror_a-home
9.9G 7.8G 1.6G 84% /home
$ man locale