|
From: | Luke Kendall |
Subject: | Re: Minor bug in df |
Date: | Sun, 14 Feb 2010 15:59:28 +1100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
Pádraig Brady wrote:
On 12/02/10 08:40, Luke Kendall wrote:(A long time ago) Jim Meyering wrote:Luke Kendall <address@hidden> wrote:The column formatting of the plain "df" output is misaligned, making it hard to read. Same is true for -P option. For example:...: /home/data/audio; df --version df (GNU coreutils) 5.96Thanks for the report. That's probably fixed in the latest stable release: coreutils-6.9. If not, please let us know.Still broken for me:It's to do with your locale: $ head -n1 /etc/issue Ubuntu 9.10 \n \l $ dpkg -s coreutils | grep Version Version: 7.4-2ubuntu1 $for LANG in en_AU.utf8 en_IE.utf8; do df | head -n2; done Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 14421344 6657252 7031532 49% / Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 14421344 6657252 7031532 49% / Interestingly I can't reproduce it on fedora 11 (coreutils-7.2) or fedora 12 (coreutils-7.6), or on en_AU on unbuntu. Note coreutils doesn't provide english variant translations, while ubuntu does, so I'm guessing it's an issue with the en_AU ubuntu coreutils translation?
I think you're right. I'll report it. $ head -n1 /etc/issue Ubuntu 9.10 \n \l $ dpkg -s coreutils | grep Version Version: 7.4-2ubuntu1 env | grep LANG LANG=en_AU.UTF-8 GDM_LANG=en_AU.UTF-8 $ for LANG in C en_AU.utf8 en_IE.utf8; do df | head -n2; done Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 12389244 10877948 881956 93% / Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 12389244 10877948 881956 93% / Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 12389244 10877948 881956 93% / $ env | grep LC LC_COLLATE=C $ egrep "(LC|LOCALE|LANG)" /etc/profile # that's set by LANG=en_US.UTF-8 export LC_COLLATE=C
However, df -P works (except for large drives).I'll look at fixing the alignment for large drives soon.
That would be good, too.
cheers, Pádraig.
Many thanks! And sorry for my slow reply. luke
[Prev in Thread] | Current Thread | [Next in Thread] |