I didn't start playing with Satchmo until after upgrading to Snow
Leopard, so I don't know what originated this defect, but I ran into
the same issue as documented here:
http://groups.google.com/group/satchmo-users/browse_thread/thread/ae7d6c6e3b06fece

After digging down, I discovered that some of the LC_MONETARY entries
(found in /usr/share/locale) for en_US and en_CA were incorrect on my
machine.  Instead of

USD
$
.
,
3;3

-
2
2
1
0
1
0
1
1

The numeric rows had -1 while the alpha rows were blank.  My solution
was to copy LC_MONETARY for these two locales from a valid Leopard
machine.

A test for whether the locale data is valid (other than looking at the
file) is:
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
>>> locale.localeconv()
{'mon_decimal_point': '.', 'int_frac_digits': 2, 'p_sep_by_space': 0,
'frac_digits': 2, 'thousands_sep': ',', 'n_sign_posn': 1,
'decimal_point': '.', 'int_curr_symbol': 'USD ', 'n_cs_precedes': 1,
'p_sign_posn': 1, 'mon_thousands_sep': ',', 'negative_sign': '-',
'currency_symbol': '$', 'n_sep_by_space': 0, 'mon_grouping': [3, 3,
0], 'p_cs_precedes': 1, 'positive_sign': '', 'grouping': [3, 3, 0]}

If any of the dictionary values are 127 (eg. 'int_frac_digits': 127 ),
then the LC_MONETARY file has a row with a value of -1.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to