[Community] Test failure on windows Py2.6 (unsupported locale setting)
Jaakko Salli
jaakko.salli at dnainternet.net
Thu Jan 21 19:54:14 EET 2010
Hi all,
Looks like locale identifier 'portuguese-brazil' is no longer
supported in Python 2.6. However, 'portuguese_brazil' seems
to work in all Python version from 2.3 to 2.6. Below is a patch
for Shapely 1.2 (but similar fix should also be applied to 1.0
branch).
Index: shapely/tests/wkt_locale.txt
===================================================================
--- shapely/tests/wkt_locale.txt (revision 1521)
+++ shapely/tests/wkt_locale.txt (working copy)
@@ -5,7 +5,7 @@
>>> import locale, sys
>>> if sys.platform == 'win32':
- ... _ = locale.setlocale(locale.LC_ALL, 'portuguese-brazil')
+ ... _ = locale.setlocale(locale.LC_ALL, 'portuguese_brazil')
... else:
... _ = locale.setlocale(locale.LC_ALL, 'pt_BR.UTF-8')
Regards,
Jaakko
More information about the Community
mailing list