Summary: | A superscripted number doesn't work in an exponentiation | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Infine <theinfine> |
Component: | calculator | Assignee: | Alexander Lohnau <alexander.lohnau> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate, plasma-bugs |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/6a1bab19af2af22a31fadfd707a5085c4bab11a9 | Version Fixed In: | 5.22 |
Description
Infine
2021-04-19 18:13:34 UTC
Confirmed, but it works as expected in the qalc CLI. Git commit 6a1bab19af2af22a31fadfd707a5085c4bab11a9 by Nate Graham, on behalf of Alexander Lohnau. Committed on 21/04/2021 at 19:11. Pushed by ngraham into branch 'master'. calculatorrunner: Fix superscripted numbers Use toLocal8Bit instead of toLatin1 see https://doc.qt.io/qt-5/qstring.html#toLatin1. Otherwise the superscripted numbers would not be correctly converted. M +2 -0 runners/calculator/autotests/calculatorrunnertest.cpp M +2 -1 runners/calculator/qalculate_engine.cpp https://invent.kde.org/plasma/plasma-workspace/commit/6a1bab19af2af22a31fadfd707a5085c4bab11a9 |