[Python-checkins] r86477 - python/branches/py3k-cdecimal/Lib/test/mpdecimal/python/formathelper.py

stefan.krah python-checkins at python.org
Tue Nov 16 12:39:16 CET 2010


Author: stefan.krah
Date: Tue Nov 16 12:39:16 2010
New Revision: 86477

Log:
On FreeBSD, en_GB.US-ASCII has 163 as the currency symbol, causing an
error in localeconv().



Modified:
   python/branches/py3k-cdecimal/Lib/test/mpdecimal/python/formathelper.py

Modified: python/branches/py3k-cdecimal/Lib/test/mpdecimal/python/formathelper.py
==============================================================================
--- python/branches/py3k-cdecimal/Lib/test/mpdecimal/python/formathelper.py	(original)
+++ python/branches/py3k-cdecimal/Lib/test/mpdecimal/python/formathelper.py	Tue Nov 16 12:39:16 2010
@@ -178,8 +178,10 @@
 
 if platform.system() == 'FreeBSD':
     # http://www.freebsd.org/cgi/query-pr.cgi?pr=142173
+    # en_GB.US-ASCII has 163 as the currency symbol.
     for loc in ['it_CH.ISO8859-1', 'it_CH.ISO8859-15', 'it_CH.UTF-8', 'it_IT.ISO8859-1',
-                'it_IT.ISO8859-15', 'it_IT.UTF-8', 'sl_SI.ISO8859-2', 'sl_SI.UTF-8']:
+                'it_IT.ISO8859-15', 'it_IT.UTF-8', 'sl_SI.ISO8859-2', 'sl_SI.UTF-8',
+                'en_GB.US-ASCII']:
         try:
             locale_list.remove(loc)
         except ValueError:


More information about the Python-checkins mailing list