R. David Murray <rdmur...@bitdance.com> added the comment:

Steffan: I'm not sure what your post means, but I think there is a chance you 
might be confused about something.  Python should *never* change the locale 
from the C locale.  A Python *program* can do so, by calling setlocale, but 
Python itself should not.  This is because when an arbitrary Python program is 
run, it needs to run in the C locale *unless it chooses otherwise*.  To do 
anything else would produce a myriad portability problems for any code that is 
affected by locale settings (especially when the programmer doesn't know that 
it is so affected).

This is orthogonal to the issue of deciding what encoding to use for various 
bits of I/O, where Python may need to discover what locale the user has chosen 
as a default.  It's too bad libc makes this so hard to do safely.

----------
nosy: +r.david.murray

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

Reply via email to