After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 612872 - wrong base-10 prefix KB (correct is kB)
wrong base-10 prefix KB (correct is kB)
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-14 15:10 UTC by Benjamin Drung
Modified: 2011-05-16 15:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
unit_fix.patch (3.26 KB, patch)
2010-03-14 15:12 UTC, Benjamin Drung
none Details | Review
unit_fix_v2.patch (2.95 KB, patch)
2011-02-14 13:13 UTC, Benjamin Drung
none Details | Review

Description Benjamin Drung 2010-03-14 15:10:41 UTC
gnome-disk-utility uses a wrong base-10 prefix KB. The correct prefix is kB (small k).

Bug initial reported in Ubuntu: https://launchpad.net/bugs/538732
Comment 1 Benjamin Drung 2010-03-14 15:12:18 UTC
Created attachment 156123 [details] [review]
unit_fix.patch

Here is the patch to correct KB to kB.
Comment 2 David Zeuthen (not reading bugmail) 2010-03-15 15:52:50 UTC
It's too late to change this for 2.29.x as we are in string freeze.
Comment 3 Benjamin Drung 2010-03-15 15:55:06 UTC
Needs "KB" or "kB" a translation?
Comment 4 David Zeuthen (not reading bugmail) 2010-03-15 16:05:52 UTC
Actually the strings are not marked for translation, see

http://git.gnome.org/browse/gnome-disk-utility/tree/src/gdu/gdu-util.c?id=2.29.90#n48

but that's probably a separate bug. Also, see: http://en.wikipedia.org/wiki/Kibibyte - the kicker here is that the abbreviation for Kibibyte uses a capital K: KiB

Actually, are they using kB or KB on OS X and Windows?
Comment 5 David Zeuthen (not reading bugmail) 2010-03-15 16:07:31 UTC
Then again, the proposed patch does change strings marked for translation. So next release...
Comment 6 Benjamin Drung 2010-03-15 16:16:00 UTC
The small k is a prefix defined in SI standard. Details and links: https://wiki.ubuntu.com/UnitsPolicy

Windows does not use kB. They use KiB labelled as "KB".
Comment 7 Benjamin Drung 2011-02-14 13:13:58 UTC
Created attachment 180821 [details] [review]
unit_fix_v2.patch

Updated patch.
Comment 8 Martin Pitt 2011-05-16 13:22:05 UTC
As the code actually uses base-10 and not base-2, using kB is correct, KiB would be wrong here. As nowaday's hard disks are sold with base-10 sizes (mostly for marketing reasons, I guess?), I'm +1 for this patch. As we are past the GNOME 3 release, is it ok to apply this now? (I'm fine with updating this to git head and pushing, just want David's ack on this).

Thanks,

Martin
Comment 9 David Zeuthen (not reading bugmail) 2011-05-16 14:44:28 UTC
LGTM, please do - thanks!
Comment 10 Martin Pitt 2011-05-16 15:08:22 UTC
Pushed. I also committed http://git.gnome.org/browse/gnome-disk-utility/commit/?id=9db270c2 to fix all po/*.po files after that change, to avoid fuzzing them.

Thanks Benjamin!