https://bugs.kde.org/show_bug.cgi?id=461010
Bug ID: 461010
Summary: Allow pasting U+002D HYPHEN-MINUS character
Classification: Applications
Product: kcalc
Version: 22.08.2
Platform: Archlinux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
It should be possible to paste a negative value with `U+2212 − MINUS SIGN`
(e.g. `−1`) in addition to `U+002D - HYPHEN-MINUS` (e.g. `-1`). The former
character should be converted to the later, since it's the negative sign used
by KCalc.
The `U+2212 − MINUS SIGN` (https://unicode-table.com/en/2212/) is part of the
Unicode Mathematical Operators block, and might be used to represent negative
values.
STEPS TO REPRODUCE
1. Copy a negative value having `U+2212 − MINUS SIGN` (e.g. `−1`) to the
clipboard.
2. Paste the clipboard content to KCalc.
OBSERVED RESULT
The value is not handled, and `nan` is displayed.
EXPECTED RESULT
The value is accepted, and `-1` is displayed. Internally, `U+2212 − MINUS SIGN`
is converted to `U+002D - HYPHEN-MINUS` (e.g. `−1` becomes `-1`).
SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
ADDITIONAL INFORMATION
None.
--
You are receiving this mail because:
You are watching all bug changes.