This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] enable SI unit suffix in printf_size
- From: Paul Eggert <eggert at CS dot UCLA dot EDU>
- To: Ian Wienand <ianw at gelato dot unsw dot edu dot au>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 19 Oct 2005 16:17:45 -0700
- Subject: Re: [PATCH] enable SI unit suffix in printf_size
- References: <20051019025552.GC14095@cse.unsw.EDU.AU>
Ian Wienand <ianw@gelato.unsw.edu.au> writes:
> Recent discussions reminded me of something I wanted before; SI units
> with the printf_size functions.
There seems to be some confusion here, since SI units are decimal.
Perhaps you're thinking of IEC 60027-2? That's not SI; it's
something else. See <http://en.wikipedia.org/wiki/Binary_prefixes>.
SI specifies "k" (not "K") for 1000, so adding support for true SI
would require rethinking and/or documentation clarification for "k".
(In contrast IEC 60027-2 always specifies upper-case multipliers, so it
uses "Ki", not "ki".)
Another minor point: IEC 60027-2 does not specify Zi or Yi prefixes.
They are common extensions (GNU coreutils uses them, for example), but
the documentation shouldn't claim they're part of the standard.