[PATCH] enable SI unit suffix in printf_size
Paul Eggert
eggert@CS.UCLA.EDU
Wed Oct 19 23:17:00 GMT 2005
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.
More information about the Libc-alpha
mailing list