Summary: | result of calculation is displayed in a strange format | ||
---|---|---|---|
Product: | [Applications] Kalk | Reporter: | Marlo heinicke <marlointernetexperte> |
Component: | General | Assignee: | hanyoung |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | espidev |
Priority: | NOR | ||
Version First Reported In: | 24.12.2 | ||
Target Milestone: | --- | ||
Platform: | Flatpak | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/kalk/-/commit/445b382f56ff83261edf70b2f2b14f5ee84cb4f0 | Version Fixed In: | 25.08.0 |
Sentry Crash Report: | |||
Attachments: | Screenshot of the problem |
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kalk/-/merge_requests/119 Git commit b452c5a3460b78fe6deff3ff9d95f7ca21838c28 by Devin Lin, on behalf of Albin ZE. Committed on 31/07/2025 at 23:12. Pushed by devinlin into branch 'master'. Fix: Correctly handle locale-specific decimal separators Related: bug 507525, bug 501190 Fixes a bug where locales that use a comma for decimals, like de_DE, would break calculations. The comma wasn't being converted to a period for the math engine, leading to it being misinterpreted and causing weird results. This now handles the conversion before and after the calculation. This was originally created as https://invent.kde.org/utilities/kalk/-/merge_requests/118, but was updated by @devinlin to expedite getting the fix in due to its severity. M +6 -1 src/qalculateengine.cpp https://invent.kde.org/utilities/kalk/-/commit/b452c5a3460b78fe6deff3ff9d95f7ca21838c28 Git commit 445b382f56ff83261edf70b2f2b14f5ee84cb4f0 by Devin Lin, on behalf of Albin ZE. Committed on 06/08/2025 at 15:13. Pushed by devinlin into branch 'release/25.08'. Fix: Correctly handle locale-specific decimal separators Related: bug 507525, bug 501190 Fixes a bug where locales that use a comma for decimals, like de_DE, would break calculations. The comma wasn't being converted to a period for the math engine, leading to it being misinterpreted and causing weird results. This now handles the conversion before and after the calculation. This was originally created as https://invent.kde.org/utilities/kalk/-/merge_requests/118, but was updated by @devinlin to expedite getting the fix in due to its severity. M +6 -1 src/qalculateengine.cpp https://invent.kde.org/utilities/kalk/-/commit/445b382f56ff83261edf70b2f2b14f5ee84cb4f0 |
Created attachment 179154 [details] Screenshot of the problem I tried to do a simple calculation, like for example 55*0,7 and instead of showing the result (which is 38,5) the app is showing [0 7].