This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients ixokai, ronaldoussoren
Date 2010-10-20.15:46:21
SpamBayes Score 6.0323254e-07
Marked as misclassified No
Message-id <A0153B5D-DEEC-4B14-8F88-34CB7A1E604F@mac.com>
In-reply-to <1287588685.92.0.0691926945263.issue10154@psf.upfronthosting.co.za>
Content
This patch solves the immediate failure:

Index: Lib/locale.py
===================================================================
--- Lib/locale.py	(revision 85743)
+++ Lib/locale.py	(working copy)
@@ -396,6 +396,9 @@
         else:
             encoding = defenc
         #print 'found encoding %r' % encoding
+        if sys.platform == 'darwin' and encoding == 'UTF8':
+            encoding = 'UTF-8'
+
         if encoding:
             return langname + '.' + encoding
         else:

I'm not happy about hardcoding this specific exception though, there should be a better solution than this.

Ronald
Files
File name Uploaded
smime.p7s ronaldoussoren, 2010-10-20.15:46:21
History
Date User Action Args
2010-10-20 15:46:23ronaldoussorensetrecipients: + ronaldoussoren, ixokai
2010-10-20 15:46:22ronaldoussorenlinkissue10154 messages
2010-10-20 15:46:22ronaldoussorencreate