Benjamin Peterson added the comment:

I'm still confused about what getlocale() is supposed to do. Why do we attempt 
to return an encoding anyway if the underlying setlocale call doesn't return 
one? Is getlocale() not supposed to a simple wrapper over the C locale? If not, 
how is one supposed to get the encoding associated with the C locale?

The old alias table code meant that the encoding returned from getlocale() 
could be related to or completely unrelated to the actual C locale. 
Misunderstanding this results in issues like #29571.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20087>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to