Problems trying to get currency separator correct for CAD

John Ralls jralls at ceridwen.us
Thu Jul 21 17:41:42 EDT 2011


On Jul 21, 2011, at 2:54 PM, bunk3m wrote:

> Hi Warlord.
> 
> If this is bug in  the locale configuration, then why do Excel, SEE
> Finance, Libreoffice-Calc etc. etc. all use the proper currency
> separator (ie. "dot")? 
> 
> If the locale had a bug then the other programs would also use "comma"
> just like Gnucash.   Yes???
> 
> B
> 
> On 21.07.2011 14:31, Derek Atkins wrote:
>> "Vasyĺ V. Vercynśkyj" <fuckel at ukr.net> writes:
>> 
>>> 20.07.2011 21:13, bunk3m wrote:
>>>> I'm using Gnucash 2.4.7 on OSX 10.5.8.
>>>> 
>>>> I've been searching but not found how to change the "," (comma) to "."
>>>> (decimal) to separate the dollars and cents.  This is not the standard
>>>> for Canada (English speaking Canada anyway.  Not sure what our
>>>> Francophone cousins use...)
>>> […]
>>> And I sure that decimal separator for Russia (in accordance with
>>> national standard) is comma, but Gnucash insistently inserts periods
>>> in spite of:
>>> 
>>> $ echo $LANG
>>> ru_RU.UTF-8
>>> 
>>> The bug was registered almost four month ago but nobody cares:
>>> https://bugzilla.gnome.org/show_bug.cgi?id=646096
>> This would be a bug in the locale configuration, not a bug in GnuCash.
>> GnuCash just uses what the locale says to use.

Those are all actual OSX applications. Gnucash is a Gtk application which happens to run on OSX.

$LANG does absolutely nothing for Gnucash on OSX; all of the environment stuff is set from System Preferences>Language and Text. Number formatting is set from the Formats page on that sheet, but the customizations aren't taken in to account, only the locale. That's because Gnucash uses gettext, which can't handle custom formats, while true OSX applications use ICU, which can.

So Bunkum and Vasily, set the format to a country which gives you the format you like without customizing anything.
If that's not the country you want to use for everything else, use defaults as described here:
http://wiki.gnucash.org/wiki/FAQ#Q:_I.27m_a_Mac_user_and_I_want_to_use_Gnucash_in_a_language_different_from_my_system_settings.

Regards,
John Ralls





More information about the gnucash-user mailing list