SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

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 (2010年11月30日)
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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /