https://bugs.kde.org/show_bug.cgi?id=511111
Bug ID: 511111
Summary: Use US or UK imperial units depending on the current
locale
Classification: Frameworks and Libraries
Product: frameworks-kunitconversion
Version First unspecified
Reported In:
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
KUnitConversion (in the launcher / krunner) uses a mix of US/UK units, making
conversions wrong (technically not wrong, if you know what it's doing, but).
STEPS TO REPRODUCE
1. Convert 1 cup to pints in a US locale.
3. Convert 1 pint to ml.
OBSERVED RESULT
1. 1 cup should be 0.5 pints, but it comes up as 0.416 imperial pints.
2. 1 pint should be 473ml (if in a US locale), but it comes up as 568ml
(always).
EXPECTED RESULT
The GNU units command autodetects based on locale and uses US customary units
if you're in an en_US locale, and UK units if you're in an en_GB locale (other
countries get the US units; you can use UNITS_ENGLISH=US or GB for testing).
Maybe KUnitConversion could do the same (perhaps disambiguating the name with
"US pints" vs. "Imperial pints" etc.)?
In which case 1 cup would be 0.5 pints, always, and in a US locale 1 pint would
be 473ml while in a GB locale it would be 568ml. I think teaspoons/tablespoons
are different as well.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Trixie
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
ADDITIONAL INFORMATION
-
--
You are receiving this mail because:
You are watching all bug changes.