Bug 292795 - Solid always reports disk size in the form of GiB, regardless of the choice in systemsettings
Summary: Solid always reports disk size in the form of GiB, regardless of the choice i...
Status: CONFIRMED
Alias: None
Product: frameworks-solid
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
: 313299 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-29 14:26 UTC by vyacheslav
Modified: 2023-12-20 13:34 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (349.85 KB, image/png)
2012-08-09 08:11 UTC, vyacheslav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vyacheslav 2012-01-29 14:26:36 UTC
Version:           2.0 (using KDE 4.8.0) 
OS:                Linux

I set up size units to KB,MB,GB (systemsettings -> Locale -> Country/Region & Language -> Others -> Byte size units) but dolphin,gwenview and open/save dialog of KDE shows KiB,MiB and GiB. See screenshot.

Reproducible: Always

Steps to Reproduce:
1. Set up size units to MB,GB
2. See dolphin disks tree or disks sizes in open/save file dialog.


Actual Results:  
We see KiB,MiB,GiB

Expected Results:  
Size units in everywhere should be KB,MB,GB not KiB,MiB,GiB

OS: Linux (x86_64) release 3.2.2-1-ARCH
Compiler: gcc
Comment 1 Jekyll Wu 2012-08-09 07:54:37 UTC
I failed to reproduce it using KDE SC 4.9.0.  The screenshot was missing.

Is it still a problem for the reporter in KDE SC 4.9.0 ?
Comment 2 vyacheslav 2012-08-09 08:11:14 UTC
Created attachment 73057 [details]
Screenshot

This bug still exists in KDE 4.9. Screenshot attached.
Comment 3 Jekyll Wu 2012-08-09 09:01:54 UTC
Thanks for your feedback. The screenshot helps clarifying where the problem is.  

Move it to the "places" component for now, although I guess it should be re-assigned to the kfile product.
Comment 4 Frank Reininghaus 2012-08-09 10:43:36 UTC
I think that these device names come from Solid.
Comment 5 Jekyll Wu 2012-08-17 11:39:12 UTC
in kdelibs/solid/solid/backends/udisks/udisksdevice.cpp

// Adapted from KLocale as Solid needs to be Qt-only
static QString formatByteSize(double size)
{
    ...
}

So it uses KiB/MiB/GiB in hardcoded way .
Comment 6 Jekyll Wu 2013-01-15 15:18:31 UTC
*** Bug 313299 has been marked as a duplicate of this bug. ***
Comment 7 Lukáš Tinkl 2013-01-15 15:22:57 UTC
Yup, confirmed. Solid is Qt-only code so it doesn't respect the user settings in this regard
Comment 8 Alex Fiestas 2013-04-02 19:13:57 UTC
Maybe we should have some kind of backend mechanism for this but not going to happen until solid2.

Setting as wish.
Comment 9 Jonathan Riddell 2015-03-11 19:10:25 UTC
This bug is reported on libsolid which is the kdelibs4 version of the solid library.  It is now in maintenance mode.  If you think it should still be fixed in the KDE Frameworks 5 version of solid please move it to or report a bug on frameworks-solid.
Comment 10 Bug Janitor Service 2023-12-20 13:34:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/solid/-/merge_requests/153