Bug 493127 - Kmymoney does not respect the number and currency settings of KDE
Summary: Kmymoney does not respect the number and currency settings of KDE
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-14 17:09 UTC by Xwang
Modified: 2024-09-16 06:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xwang 2024-09-14 17:09:32 UTC
SUMMARY
I want to have both numbers and currencies use the dot as decimal separator and with no thousand separators.

So In the KDE system setting, I've set both numbers and currency to use the C format.

Indeed locale returns: 
LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC=C
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY=C
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

After that opening Kmymoney I can see that it uses the dot as decimal separator, but it stiil uses the comma as thousand separator.

STEPS TO REPRODUCE
1. Set up number and currency in KDE to use the C format
2. Restart the PC and assure that locale is correctly configured
3. Start Kmymoney

OBSERVED RESULT
Numbers use the dot as decimal separator and comma as thousand separator

EXPECTED RESULT
Numbers should use the dot as decimal separator and should have no thousand separators

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i5-1240U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Dell Inc.
Product Name: Latitude 9330

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2024-09-16 06:04:29 UTC
Already fixed in upcoming 5.2. Can be checked with the current master version when running KMyMoney from the command line with

  LC_MONETARY=C kmymoney

even while locale reports

  LC_MONETARY="it_IT.UTF-8"

No need to reboot.