Change GLib size units policy
authorRyan Lortie <desrt@desrt.ca>
Wed, 20 Jul 2011 17:44:39 +0000 (19:44 +0200)
committerRyan Lortie <desrt@desrt.ca>
Wed, 20 Jul 2011 18:06:35 +0000 (20:06 +0200)
commitafd1e3697065c1bd23fe9a1cacf43d8744d0bc9b
tree2112595402bf6a58ae82433dc607984f2820b6af
parent90cccf14b2b1dfea574d35c605669c4773d6eba6
Change GLib size units policy

This commit changes GLib size units policy.  We now prefer SI units and
allow for use of proper IEC units where desired.

g_format_size_for_display() which incorrectly mixed IEC units with SI
suffixes is left unmodified, but has been deprecated.

g_format_size() has been introduced which uses SI units and suffixes.

g_format_size_full() has also been added which takes a flags argument to
allow for use of IEC units (with correct suffixes).  It also allows for
a "long format" output which includes the total number of bytes.  For
example: "238.5 MB (238,472,938 bytes)".
docs/reference/glib/glib-sections.txt
glib/gfileutils.c
glib/gfileutils.h
glib/glib.symbols
glib/tests/fileutils.c