Bug 4556 - Filesize in kilobytes versus kibibytes
Summary: Filesize in kilobytes versus kibibytes
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.1.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2021-12-15 14:49 UTC by Marcel Pol
Modified: 2021-12-17 12:44 UTC (History)
0 users

See Also:


Attachments
use modern KiB instead of historical KB (3.86 KB, patch)
2021-12-15 16:56 UTC, Paul
Details | Diff

Description Marcel Pol 2021-12-15 14:49:54 UTC
Hi, 
I see the filesizes of attachments and emails are in kilobytes where a KB is 1024 bytes. But a kilobyte is really 1000 bytes as a kilo is 1000. For the computer related 1024 there has been kibibytes for a while.

I would consider sending in a patch (if I manage). It that wanted?

And if so, is there a preference for kibibytes (KiB) in 1000 or rather kilobytes (KB) in 1024?

For reference:
https://blogs.gnome.org/cneumair/2008/09/30/1-kb-1024-bytes-no-1-kb-1000-bytes/
https://en.wikipedia.org/wiki/Kilobyte

Looking at wikipedia, the symbol "should" be kB, not KB.

Regards,
Marcel Pol
Comment 1 Paul 2021-12-15 16:56:41 UTC
Created attachment 2266 [details]
use modern KiB instead of historical KB

When these parts of the code were written, which was some time ago now, KB was readily understood to by a kilobyte which was 1024 bytes, and it was clear for (probably) everyone. Times have changed and newcomers might be confused by this.

Here's a patch which changes the labels.
Comment 2 Marcel Pol 2021-12-15 17:44:49 UTC
Yes, this is the easiest way, changing the labels. 
Thank you already.
Comment 3 Paul 2021-12-17 12:44:34 UTC
fixed in git

Note You need to log in before you can comment on or make changes to this bug.