Bug 490694 - [Feature request] Accept currency symbols on input
Summary: [Feature request] Accept currency symbols on input
Status: CONFIRMED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 24.05.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Gabriel Barrantes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 10:36 UTC by screen-rind-whoops
Modified: 2024-09-02 02:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description screen-rind-whoops 2024-07-23 10:36:37 UTC
SUMMARY
When copying and pasting prices, a common operation, the input may contain a currency symbol. kcalc fails to handle the input when it contains a currency symbol, such as a dollar sign.

STEPS TO REPRODUCE
1. Copy and paste "$1.23". (Also try $1,100 with comma separator, fixed in https://bugs.kde.org/show_bug.cgi?id=408752 ?)
2. Add a number. ($1.23 + 1)
3. Enter.

OBSERVED RESULT
"Input error"

EXPECTED RESULT
2.23

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40 KDE, 6.9.8-200.fc40.x86_64 (64-bit)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Comment 1 Joe 2024-09-02 02:34:36 UTC
This is an annoyance for me as well. If it can handle commas as thousands separators, it ought to be able to handle a currency sign even if it just ignores it.