[PATCH] Add support for JEDEC/metric standards to KLocale::formatByteSize

Matthew Woehlke mw_triad at users.sourceforge.net
Wed Jul 15 01:03:37 BST 2009


Michael Pyne wrote:
> However, when we report download speed, that should be in 
> decimal given existing practice, even for users with JEDEC.

I hope that you will, however, accomplish this by specifying metric, 
i.e. "kBits/s" and not "KBPS" or anything else :-).

(Although I should note that I have no objection to being consistent 
with disk sizes here. I just also don't object to sticking with metric 
for network transmission rates.)

> When reporting 
> hard disk capacity (i.e. in KDiskFree) we should use (or at least show) 
> decimal units even for IEC or JEDEC.

Um... no? If my file sizes are in IEC, I expect my disk usage to be as 
well, in which case 2.4 GiB used of 100 GB is... um... yeah. Let's 
please not do that.

> Likewise, when a flash drive is inserted 
> it probably makes the most sense to use IEC unless the user has already 
> selected JEDEC when displaying the total size (individual file sizes would 
> still be displayed per user's settings).

Above notwithstanding, I don't think changing the unit used based on the 
type of storage medium is a good idea. It's not like users aren't used 
to their drives being "smaller" than labeled anyway.

> 3) I can't find the email right now  but I do remember reading an email from
> someone on our i18n teams who was having trouble with the various applications 
> using their own units [...]

http://permalink.gmane.org/gmane.comp.kde.devel.general/58189 ;-)

-- 
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
-- 
<insert bad pun... on second thought, better not>





More information about the kde-core-devel mailing list