GNU bug report logs - #16922
df --si -h should emit a warning

Previous Next

Package: coreutils;

Reported by: Mateusz Jończyk <mat.jonczyk <at> o2.pl>

Date: Sun, 2 Mar 2014 14:16:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 16922 <at> debbugs.gnu.org
Subject: bug#16922: df --si -h should emit a warning
Date: Mon, 03 Mar 2014 11:35:44 +0000
[Message part 1 (text/plain, inline)]
On 03/03/2014 10:54 AM, Pádraig Brady wrote:
> On 03/03/2014 09:36 AM, Pádraig Brady wrote:
>> On 03/03/2014 04:55 AM, Paul Eggert wrote:
>>> Pádraig Brady wrote:
>>>> +  -h, --human-readable  print abbreviated sizes in powers of 1024 (e.g. %s)\n\
>>>> +  -H, --si              print abbreviated sizes in powers of 1000 (e.g. %s)\n\
>>>
>>> Thanks for looking into improving this.  Please put commas after "e.g.".  Also, I suggest removing "abbreviated", and simplifying the translator's job by simply interpolating the human.  E.g.:
>>>
>>> -h, --human-readable  print sizes in powers of 1024 (e.g., 1023M)\n\
>>> -H, --si              print sizes in powers of 1000 (e.g., 1.1G)\n\
>>
>> Better thanks.
>> I've rolled that into my local patch.
> 
> Actually I left the %s in the string to be replaced at runtime,
> so that 1.1G or 1,1G is output as appropriate.

I suppose it's better to err on the side of less code,
and let the translator adjust, assuming LC_MESSAGES == LC_NUMERIC.
The alternative edge case is probably not worth the extra code.

I'll push the attached soon.

thanks,
Pádraig.
[df--si-docs.patch (text/x-patch, attachment)]

This bug report was last modified 11 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.