Bug 457382 - calculator treats comma separator as a stop
Summary: calculator treats comma separator as a stop
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: calculator (show other bugs)
Version: 5.25.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-01 18:31 UTC by johnathan
Modified: 2022-08-09 12:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
krunner comma (64.95 KB, image/png)
2022-08-01 18:31 UTC, johnathan
Details
krunner comma 2 (130.82 KB, image/png)
2022-08-01 18:32 UTC, johnathan
Details
krunner comma 3 (133.05 KB, image/png)
2022-08-01 18:32 UTC, johnathan
Details
krunner comma 4 (162.11 KB, image/png)
2022-08-01 18:32 UTC, johnathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnathan 2022-08-01 18:31:40 UTC
Created attachment 151053 [details]
krunner comma

SUMMARY
this is annoying. we use comma separator in currency  all the time, 100 or 1000 separator is used to make it somewhat easier to parse long currencies like in india, 
100000.56 is written as 1,00,000.00  while the same is written as 100,000.00 in american? or internationally. whatever, the point is, everytime we select a number that has comma separator, the same is treated as a fullstop, "." by the krunner and one has to manually remove commas and leave the last full stop "." as decimal separator. 
i have attached some screenshots that would explain it better


STEPS TO REPRODUCE
1.  open krunner, alt+f2.
2.  type "100,000.00" and the result should be 100000.00 but its shown as 100, treating comma as decimal separator.
3. "$100,000.00*29" and see the response.

OBSERVED RESULT
comma is treated as decimal separator forcing users to remove all commas

EXPECTED RESULT
the software is already aware of the locale but the same is not being utlized by krunner. 

Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.0-41-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4400
Manufacturer: Dell Inc.
Product Name: Latitude E7440
System Version: 01
Comment 1 johnathan 2022-08-01 18:32:01 UTC
Created attachment 151054 [details]
krunner comma 2
Comment 2 johnathan 2022-08-01 18:32:21 UTC
Created attachment 151055 [details]
krunner comma 3
Comment 3 johnathan 2022-08-01 18:32:37 UTC
Created attachment 151056 [details]
krunner comma 4
Comment 4 Alexander Lohnau 2022-08-09 12:48:34 UTC
This is intentional, see https://bugs.kde.org/show_bug.cgi?id=406388