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

Amaury Forgeot d'Arc amauryfa at gmail.com
Thu Feb 9 13:55:17 CET 2012


2012/2/9 Antoine Pitrou <solipsis at pitrou.net>

> > I think there's a general expectation that if you encode something
> > with one codec you will be able to decode it with the same codec.
> > That's not necessarily true for the locale encoding.
>
> As And pointed out, this is already the behaviour of the "mbcs" codec
> under Windows. "locale" would be the moral (*) equivalent of that under
> Unix.


With the difference that mbcs cannot change during execution.
I don't even know if it is possible to change it at all, except by
reinstalling Windows.

-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120209/9413bd9a/attachment.html>


More information about the Python-Dev mailing list