found 249832 5.93-5
retitle 249832 coreutils should use IEEE standard prefixes to denote powers of 
1024
stop

Andrew Ferrier wrote:
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda3              33G   19G   13G  59% /

Yes.

src/df.c:
      fputs (_("\n\
SIZE may be (or may be an integer optionally followed by) one of following:\n\
kB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.\n\
"), stdout);

lib/human.c:
/* human.c -- print human readable file size
[...]
static const char power_letter[] =
{
  0,    /* not used */
  'K',  /* kibi ('k' for kilo is a special case) */
  'M',  /* mega or mebi */
  'G',  /* giga or gibi */
  'T',  /* tera or tebi */
  'P',  /* peta or pebi */
  'E',  /* exa or exbi */
  'Z',  /* zetta or 2**70 */
  'Y'   /* yotta or 2**80 */
};

I agree; coreutils programs should use 'Ki', 'Mi', etc., for kibi, mebi, etc.

-- 
Thomas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to