Bug 436933

Summary: Can't use comma as argument separator in Calculator
Product: [Plasma] krunner Reporter: Mahmud Nabil <nabilsnigdho>
Component: calculatorAssignee: Alexander Lohnau <alexander.lohnau>
Status: REPORTED ---    
Severity: normal CC: nabilsnigdho, plasma-bugs
Priority: NOR    
Version: 5.21.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mahmud Nabil 2021-05-11 15:17:46 UTC
SUMMARY

As a result of the commit https://invent.kde.org/plasma/plasma-workspace/commit/a8644836253ee00f265ae11390dfd4afcef179ce,
functions requiring multiple arguments no longer work as showcased in https://userbase.kde.org/Plasma/Krunner#Calculator. This can be observed even in the screenshot(https://userbase.kde.org/File:KRunner.png) provided by the userbase.


STEPS TO REPRODUCE
1. In krunner enter '= integrate( -x/y^2, y )'
2. Clear input and try '= perm(10,5) ' or '= comb(10,5) '
3. 

OBSERVED RESULT
The calculator result shows C - x^2 / (2y^3).
Observed same result  by entering '.' in place of the comma.
I assume '.' here is interpreted as multiplication sign with higher precedence.
The next two inputs produces no result from calculator.

EXPECTED RESULT
-x/y
30240 and 252 for next inputs.

SOFTWARE/OS VERSIONS
Clear Linux OS 34590
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION

LC_NUMERIC information:

$ locale -kc LC_NUMERIC
LC_NUMERIC
decimal_point="."
thousands_sep=","
grouping=3;3
numeric-decimal-point-wc=46
numeric-thousands-sep-wc=44
numeric-codeset="UTF-8"