This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] enable SI unit suffix in printf_size


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]