[wp-trac] [WordPress Trac] #31350: size_format() Displaying Incorrect Unit

WordPress Trac noreply at wordpress.org
Tue Feb 17 07:31:31 UTC 2015


#31350: size_format() Displaying Incorrect Unit
--------------------------+------------------------------
 Reporter:  brashell      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dd32):

 I vaguely recall this coming up in the past, but couldn't find any tickets
 for it.

 Some history of the KB vs KiB debate is in Wikipedia:
 http://en.wikipedia.org/wiki/Mebibyte#Definition which shows that until
 2009/2010ish all major OS's displayed 1024B as 1KB, completely ignoring
 the IEC spec, so we followed along and used what everyone expects.
 However, now OS X and Ubuntu (at least) have switched to using 1000B =
 1KB, leaving Microsoft the hold-out of ignoring the IEC standard.

 This is so minor that it can go either way to me, but if we do change
 anything, we should replace 1024 with 1000, just so we never have to
 display 'KiB' since that's even more unfamiliar to people. I doubt anyone
 would notice or complain that their website says the file is 2% larger
 than it really is, especially not with the filesizes most people upload.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31350#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list