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 ruseel
Recipients belopolsky, ned.deily, r.david.murray, ruseel, skoczian
Date 2010-11-24.05:08:34
SpamBayes Score 6.441672e-05
Marked as misclassified No
Message-id <1290575318.59.0.563528249638.issue10498@psf.upfronthosting.co.za>
In-reply-to
Content
On OSX, _locale.setlocale raise locale.Error with arg 'UTF8' but ok with 'UTF-8'. and setlocale tries to normalize localename with locale.normalize(). and locale.normalize() always change encoding to 'UTF8' (locale.py:646). 

So changes in locale.normalize could fix this issue at least on OSX. 

patch and unittest against p3k is attached.



I did not search why normalize() changes 'utf_8' to 'UTF8' until now. but I would post if I get answer in subversion log.
History
Date User Action Args
2010-11-24 05:08:38ruseelsetrecipients: + ruseel, belopolsky, ned.deily, r.david.murray, skoczian
2010-11-24 05:08:38ruseelsetmessageid: <1290575318.59.0.563528249638.issue10498@psf.upfronthosting.co.za>
2010-11-24 05:08:35ruseellinkissue10498 messages
2010-11-24 05:08:35ruseelcreate