Bug 347203 - KMyMoney 4.6.6 priotizes LC_MESSAGES over other LC_* variables dropping user locales for currency and dates
Summary: KMyMoney 4.6.6 priotizes LC_MESSAGES over other LC_* variables dropping user ...
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-05 06:11 UTC by Oliver Maurhart
Modified: 2017-11-11 23:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Maurhart 2015-05-05 06:11:41 UTC
This is Kubuntu 15.04 with Plasma 5.2. Though I set my locales to use currency and date for my regional settings I do want to have my console output in POSIX. So I have (hence the LC_MESSAGES):

$ locale
LANG=de_AT.UTF-8                                                                                                                                                                                                                                                                                  
LANGUAGE=en_US:de                                                                                                                                                                                                                                                                                 
LC_CTYPE="de_AT.UTF-8"                                                                                                                                                                                                                                                                            
LC_NUMERIC=de_AT.UTF-8                                                                                                                                                                                                                                                                            
LC_TIME=de_AT.UTF-8                                                                                                                                                                                                                                                                               
LC_COLLATE="de_AT.UTF-8"                                                                                                                                                                                                                                                                          
LC_MONETARY=de_AT.UTF-8                                                                                                                                                                                                                                                                           
LC_MESSAGES=POSIX                                                                                                                                                                                                                                                                                 
LC_PAPER=de_AT.UTF-8                                                                                                                                                                                                                                                                              
LC_NAME="de_AT.UTF-8"                                                                                                                                                                                                                                                                             
LC_ADDRESS="de_AT.UTF-8"                                                                                                                                                                                                                                                                          
LC_TELEPHONE="de_AT.UTF-8"                                                                                                                                                                                                                                                                        
LC_MEASUREMENT=de_AT.UTF-8                                                                                                                                                                                                                                                                        
LC_IDENTIFICATION="de_AT.UTF-8"                                                                                                                                                                                                                                                                   
LC_ALL= 

However, KMyMoney (and maybe all of Plamsa 5.2, don't know) rejects my regional settings and render all in POSIX giving me us english notations for currency and time.

This is pretty annoying in KMyMoney since I in german the decimal point for numbers is ',' and not '.'  which is quite annoying on ledger input.

Reproducible: Always


Actual Results:  
All date and currencies are rendered POXIS/US-english discarding LC_* settings.

Expected Results:  
KMyMoney should respect appropriate LC_* values for date and currency.
Comment 1 Thomas Baumgart 2015-05-06 07:14:23 UTC
KMyMoney in general follows KDE global settings for date and currency formats. Please check your KDE system settings and report back. You can access them from within KMyMoney using the "Settings/KDE language settings..." menu.

Currently, this sounds more like a possible upstream problem to me, but I might be mistaken.
Comment 2 Oliver Maurhart 2015-05-06 08:28:00 UTC
(In reply to Thomas Baumgart from comment #1)
> KMyMoney in general follows KDE global settings for date and currency
> formats. Please check your KDE system settings and report back. You can
> access them from within KMyMoney using the "Settings/KDE language
> settings..." menu.

I checked. KDE System Settings are ok. Also from within KMyMonex "Settings/KDE language settings" all looks right. There I set up for money to look like this: "12.345,67" .

But with LC_MESSAGES=POSIX still KMyMoney renders these as "12.345.67" - not the two points '.'.

How can I check if this is upstream by KDE? Is there any other common app which renders currencies in KDE?

This is Kubuntu 15.04 and I installed Plasma 5.3 - KMyMoney says:
"Version 4.6.6
Using KDE Development Platform 4.14.7"
Comment 3 Thomas Baumgart 2015-05-08 07:28:37 UTC
I was unable to duplicate your problem using KMyMoney 4.7.2 or KMyMoney master. (I was unable to quickly build 4.6.6 in my environment and did not have the time to analyze/fix that.) So I suggest that you upgrade to the latest stable version 4.7.2 and see if the problem persists in your environment. Here's the output of locale for my 'test'-environment:

.thb@thb-nb:~/devel/kmymoney/build (master)$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=POSIX
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Comment 4 Oliver Maurhart 2015-05-17 15:04:31 UTC
I fixed it. It has been a wrong "LANGUAGE=en_US:de" setting. I assume it has to do something with multiple languages in KDE settings, but as soon I removed German I got "LANGUAGE=en_US" which does not confuse anyone.

So, not a bug. At least not on KMyMoney's side.