Bug 400068 - multi parameter functions don't work when decimal separator is set to comma in current locale
Summary: multi parameter functions don't work when decimal separator is set to comma i...
Status: RESOLVED DUPLICATE of bug 267203
Alias: None
Product: kmplot
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-20 16:22 UTC by Tomasz Kołosowski
Modified: 2018-10-21 03:56 UTC (History)
0 users

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 Tomasz Kołosowski 2018-10-20 16:22:08 UTC
SUMMARY
If system is set to a locale that uses comma instead of dot as decimal separator, functions like min() or max() which take multiple parameters won't work, as system thinks that comma is decimal separator rather than parameter separator.

STEPS TO REPRODUCE
1. Set decimal separator to comma in system settings -> regional settings -> formats -> numbers (i.e. pl_PL uses comma)
2. Try to plot anything using min or max, i.e. f(x) = max(sin(x),cos(x))

OBSERVED RESULT
Plot isn't drawn as kmplot complains about input being invalid

EXPECTED RESULT
Plot is drawn


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.1
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Tested under pl_PL locale, when running LANG=C kmplot everything works as expected
Comment 1 Christoph Feck 2018-10-21 03:56:07 UTC

*** This bug has been marked as a duplicate of bug 267203 ***