[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8
Gordon Messmer
report at bugs.python.org
Tue Jul 9 01:44:38 EDT 2019
Gordon Messmer <gordon.messmer at gmail.com> added the comment:
> I can see that it might be helpful to provide such a conversion if
> C.UTF-8 doesn't exist and en_US.UTF-8 does
That can't happen. The "C" locale describes the behavior defined in the ISO C standard. It's built-in to glibc (and should be for all other libc implementations). All other locales require external support (i.e. /usr/lib/locale/<locale>)
https://www.gnu.org/software/libc/manual/html_node/Standard-Locales.html#Standard-Locales
----------
nosy: +gordonmessmer
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30755>
_______________________________________
More information about the Python-bugs-list
mailing list