[Python-Dev] Add a new "locale" codec?

Nick Coghlan ncoghlan at gmail.com
Thu Feb 9 21:43:24 CET 2012


On Fri, Feb 10, 2012 at 12:59 AM, Stephen J. Turnbull
<stephen at xemacs.org> wrote:
> If this is needed, it should be spelled "os.getlocaleencoding()" (or
> "sys.getlocaleencoding()"?)

Or locale.getpreferredencoding(), even ;)

FWIW, I agree with Stephen on this one, but take that with the grain
of salt that I could probably decode most of the strings I work with
as ASCII without breaking anything.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list