Changing LC_MONETARY does not affect number format

John Ralls jralls at ceridwen.us
Sun Dec 29 11:28:48 EST 2013


On Dec 29, 2013, at 6:05 AM, Derek Atkins <derek at ihtfp.com> wrote:

> Hi,
> 
> On Sun, December 29, 2013 4:43 am, Mario G wrote:
>> I've installed the latest version of gnucash on my computer. I need to
>> have "." as a decimal separator because I'd like to use the keypad to
>> enter numbers, without having to switch to the other portion of the
>> keyboard to enter the comma.
>> Setting LC_MONETARY=en_US in the environment file (I'm using Windows
>> 8.1) does not change anything: numbers are displayed like "1.055,23",
>> "0,15" while I'd like them to be displayed as "1 055.23" and "0.15".
>> 
>> I have this in the environment file:
>> # If you wish GnuCash to use a different language, uncomment the two
>> parameters
>> # below and set LANG to your preferred locale
>> LANG=en_US
>> LANGUAGE={LANG}
>> 
>> If I change LANG=en_US to LANG=it_IT I have italian language for the
>> interface and the same number format.
>> If I put LC_MONETARY=en_US after the lines shown above, nothing changes.
>> I also tried LC_MONETARY=de_CH without result.
>> 
>> Can you help me?
> 
> LC_MONETARY affects the locale currency (i.e. which currency gets a
> currency symbol).  You probably want to set LC_NUMERIC.

And 'en_US' may not work, on some systems it isn't a valid locale. Try 'C'.

Regards,
John Ralls


More information about the gnucash-user mailing list