Comment 4 for bug 430243

Revision history for this message
Karel Kolman (kolmis) wrote :

The currency tests are failing because locale definitions can differ on Linux and Windows, i.e. the thousand separator can be an ordinary space ' ' vs u'\xa0' characters or in other words linux Russian locale does not have to be the same as Russian locale on windows.

My opinion on the currency formatting is that number formatting should not be part of the currency definition, the definitions should contain
'currency_symbol'
'int_curr_symbol'
(and maybe 'n_cs_precedes', 'p_cs_precedes')
symbols only and keep the number formatting to the current locale.

The BaseCurrency's constructor would contain one simple statement:
self.LOCALECONV = locale.localeconv()

I'm not sure you'll agree with me, but i think this would simplify things.