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 _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
