[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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