Terry J. Reedy <tjre...@udel.edu> added the comment:

Our docs explain behavior without, generally, explaining why. Hence the title 
change.

'Returns the current setting for the given locale category' seems pretty clear 
that it returns the current program setting rather than the default system 
setting. However, 'program' could be added to be clearer.

The previous discussion for locale.getdefaultlocale makes it clear that the 
starting program locale is (should be) the "portable 'C' locale". I presume you 
are saying that in this locale, the setting for the default LC_CTYPE category 
is (None,None). However, this appears to currently only be true for 2.7. So I 
suppose we could add for 2.7 "In the starting 'C' locale, the LC_CTYPE setting 
is (None,None)." (Given the next paragraph describing 'C' as a non-standard 
language code, I would have expected ('C',None), but it is as it is.)

Reading #6203, something different is needed for 3.2 and something else again 
might be needed for 3.3 depending on what is or is not done.

----------
nosy: +terry.reedy
title: explain why locale.getlocale() does not read system's locales -> explain 
that locale.getlocale() does not read system's locales

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

Reply via email to