Summary: | "40c" not interpreted as a temperature the way "40C" is | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kunitconversion | Reporter: | Nate Graham <nate> |
Component: | general | Assignee: | John Layt <jlayt> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | blackfireburn, kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Nate Graham
2017-03-20 02:34:38 UTC
Seems that "c" is interpreted to mean "speed of light." I wonder how often people need to convert to or from the speed of light vs to or from Celsius... So this is a conflict, because Celsius is defined with a capital C, but the speed of light is defined with a lowercase one: addCommonUnit(CustomUnit(new CelsiusUnitPrivate(TemperatureCategory, Celsius, 1, i18nc("temperature unit symbol", "°C"), i18nc("unit description in lists", "Celsius"), i18nc("unit synonyms for matching user input", "Celsius;°C;C"), addUnit(CustomUnit(VelocityCategory, SpeedOfLight, 2.99792458e+08, i18nc("velocity unit symbol", "c"), i18nc("unit description in lists", "speed of light"), i18nc("unit synonyms for matching user input", "speed of light;c"), Not sure there is any way to resolve this without simply removing the speed of light velocity. I think people probably do unit conversion involving Celsius more frequently than involving the speed of light, but removing features is always painful and annoys some people. Could it be checked against the covertion to. If '40c to Fahrenheit' the c is a temp marker. |