Changing LC_MONETARY does not affect number format

Mario G delphin6 at gmail.com
Sun Dec 29 12:21:32 EST 2013


Il 29/12/2013 17:28, John Ralls ha scritto:
> 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
LC_NUMERIC=en_US does not work. Also LANG=C does not work. Things do not 
change, but gnucash is reading the environment file: putting LANG=fr_FR 
changes the language of the interface to French. The decimal separator 
is always a comma.

Regards
Mario G.


More information about the gnucash-user mailing list