[issue8374] Some locales are unsupported

Martin v. Löwis report at bugs.python.org
Mon Apr 12 00:23:51 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Can we tell about getdefaultlocale’s uselessness in the docs?

I haven't quite understood what people want to use that function for. If
we knew the typical use cases, we could make recommendations what they
should use instead.

One use case is to find out the encoding of the locale, in order to
encode files. People should use locale.getpreferredencoding instead, or
trust that the io module will find out on its own.

However, these cases seem to be different.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8374>
_______________________________________


More information about the Python-bugs-list mailing list