tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: humanize_number(3) for dd(1) summary?
On 04.12.2010 00:37, Marc Balmer wrote:
>> $ ./dd if=/dev/zero of=/tmp/foobar bs=1024 count=3
>> 3+0 records in
>> 3+0 records out
>> 3072 bytes (3,0 KB) transferred in 0.001 secs (2,9 MB/sec)
>>
>> What am I missing?
>
> The use of commas looks wrong.
It's a side effect of locale (yay!) with humanize_number(3). The decimal
point is a comma in my locale. For C/POSIX, you get the dot:
$ export LC_ALL=C
$ ./dd if=/dev/zero of=/dev/null bs=1024 count=1
1+0 records in
1+0 records out
1024 bytes (1.0 KB) transferred in 0.001 secs (999 KB/sec)
This happens to all consumers of humanize_number(3); ls and df come to
mind, but they are probably others too.
--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost
Home |
Main Index |
Thread Index |
Old Index