! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar displays incorrect file size information in Thunar status bar
Status:
RESOLVED: WONTFIX

Comments

Description Paul Arnote 2013-03-03 18:09:25 CET
Thunar is displaying the incorrect file size for a single selected file, or a group of multiple files selected. Thunar is reporting the MiB of the file as the number of KiB/1000, which is the method that hard drive manufacturers use to dupe us into believing we're getting a larger hard drive than we actually get.

The MiB file sizes should be based on the KiB/1024 measurement, which is how the OS sees a MiB. By using a simple hand calculator, I can take the total number of bytes listed in the file properties dialog and divide by 1024. The result is the same number of MiB that are reported by other file managers, such as Dolphin under KDE, and by Firefox when I download that same file. The larger the file, the larger the discrepancy between what is reported by Thunar as the file size and how every other application sees the file size.
Comment 1 Paul Arnote 2013-03-03 18:13:13 CET
BTW, I've found this same behavior on Thunar versions 1.4.0 and 1.6.0.
Comment 2 Nick Schermer editbugs 2013-05-01 16:35:50 CEST
Yes, and that is the correct thing to do:

https://developer.gnome.org/glib/2.36/glib-Miscellaneous-Utility-Functions.html#GFormatSizeFlags explains why Thunar uses G_FORMAT_SIZE_DEFAULT.

Bug #9887

Reported by:
Paul Arnote
Reported on: 2013-03-03
Last modified on: 2013-05-01

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Attachments

Additional information