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. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins