From: <md...@us...> - 2010-11-30 17:35:45
|
Revision: 8812 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8812&view=rev Author: mdboom Date: 2010-11-30 17:35:39 +0000 (Tue, 30 Nov 2010) Log Message: ----------- [3109913] importing matplotlib changes string.letters Modified Paths: -------------- branches/v1_0_maint/lib/matplotlib/cbook.py Modified: branches/v1_0_maint/lib/matplotlib/cbook.py =================================================================== --- branches/v1_0_maint/lib/matplotlib/cbook.py 2010-11-30 17:20:51 UTC (rev 8811) +++ branches/v1_0_maint/lib/matplotlib/cbook.py 2010-11-30 17:35:39 UTC (rev 8812) @@ -26,8 +26,11 @@ # an encoding instead of a valid locale name. Another # pathological case that has been reported is an empty string. +# On some systems, getpreferredencoding sets the locale, which has +# side effects. Passing False eliminates those side effects. + try: - preferredencoding = locale.getpreferredencoding().strip() + preferredencoding = locale.getpreferredencoding(False).strip() if not preferredencoding: preferredencoding = None except (ValueError, ImportError, AttributeError): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |