Bug 490694

Summary: [Feature request] Accept currency symbols on input
Product: [Applications] kcalc Reporter: screen-rind-whoops <screen-rind-whoops>
Component: generalAssignee: Gabriel Barrantes <gabriel.barrantes.dev>
Status: CONFIRMED ---    
Severity: normal CC: gabriel.barrantes.dev, josephj222222
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.