[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

STINNER Victor report at bugs.python.org
Tue Mar 22 09:13:43 EDT 2022


STINNER Victor <vstinner at python.org> added the comment:

> Is it safe to use `locale.getlocale(locale.LC_CTYPE)[1] or "UTF-8"`?

I would like to deprecate getlocale(), see bpo-43557.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47000>
_______________________________________


More information about the Python-bugs-list mailing list