| Summary: | Can't use comma as argument separator in Calculator | ||
|---|---|---|---|
| Product: | [Plasma] krunner | Reporter: | Mahmud Nabil <nabilsnigdho> |
| Component: | calculator | Assignee: | Alexander Lohnau <alexander.lohnau> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | leo, nabilsnigdho, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.21.4 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Mahmud Nabil
2021-05-11 15:17:46 UTC
I think this should be solved by using Calculator::unlocalizeExpression from libqalculate instead of custom locale handling code. (In reply to leo from comment #1) > I think this should be solved by using Calculator::unlocalizeExpression from > libqalculate instead of custom locale handling code. Exactly what I had suggested here: https://bugs.kde.org/show_bug.cgi?id=406388#c19, but the maintainer seemed to be preferring his custom logic of considering both '.' and ',' to be used as decimal separator. Now when I try krunner after 4 years the comma is neither considered a decimal separator nor a expression separator, the comma is just ignored, for instance '= comb(10,5) ' becomes '= comb(105) ' :). So the implementation still does not match the user guide, https://userbase.kde.org/Plasma/Krunner#Calculator. |