]> icculus.org git repositories - icculus/xz.git/commit
Treat all integer multiplier suffixes as base-2.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 7 Mar 2010 11:59:32 +0000 (13:59 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 7 Mar 2010 11:59:32 +0000 (13:59 +0200)
commitcf38da00a140bd3bd65b192390ae5553380fd774
tree5e696ca7ccbbf8052cc218e2ee41f32490388537
parent00fc1211ae7b687ac912098f4479112059deccbd
Treat all integer multiplier suffixes as base-2.

Originally both base-2 and base-10 were supported, but since
there seems to be little need for base-10 in XZ Utils, treat
everything as base-2 and also be more relaxed about the case
of the first letter of the suffix. Now xz will accept e.g.
KiB, Ki, k, K, kB, and KB, and interpret them all as 1024. The
recommended spelling of the suffixes are still KiB, MiB, and GiB.
src/xz/util.c
src/xz/xz.1
src/xzdec/xzdec.c