Replace a eur-currency from the currency by EUR to fix old locales.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16187 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2007-06-19 19:40:49 +00:00
parent fc655729f5
commit 82124b8720

View File

@@ -839,6 +839,13 @@ gnc_locale_default_currency_nodefault (void)
currency = gnc_commodity_table_lookup (table, GNC_COMMODITY_NS_CURRENCY, code);
/* Some very old locales (notably on win32) still announce a euro
currency as default, although it has been replaced by EUR in
2001. We use EUR as default in that case, but the user can always
override from gconf. */
if (gnc_is_euro_currency (currency))
currency = gnc_get_euro();
return (currency ? currency : NULL);
}