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 gjb1002
Recipients docs@python, gjb1002
Date 2011-09-30.08:15:32
SpamBayes Score 1.2604555e-05
Marked as misclassified No
Message-id <1317370534.21.0.426762958064.issue13074@psf.upfronthosting.co.za>
In-reply-to
Content
The locale module provides locale.getdefaultlocale and locale.getpreferredencoding. The encodings returned by each are generally subtly different ('ISO8859-1' vs 'ISO-8859-1'), but the difference between these methods is not explained. 

A comment by Martin von Löwis from 2003 in http://bugs.python.org/issue813449 indicates that "getdefaultlocale should not be used in new code", if this is really the case then this should be in the docs. 

Anyone reading the docs from the top will currently encounter getdefaultlocale first and believe that this is the way to get the encoding.
History
Date User Action Args
2011-09-30 08:15:34gjb1002setrecipients: + gjb1002, docs@python
2011-09-30 08:15:34gjb1002setmessageid: <1317370534.21.0.426762958064.issue13074@psf.upfronthosting.co.za>
2011-09-30 08:15:33gjb1002linkissue13074 messages
2011-09-30 08:15:32gjb1002create