[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning
Inada Naoki
report at bugs.python.org
Fri Mar 19 10:28:46 EDT 2021
Inada Naoki <songofacandy at gmail.com> added the comment:
> Since the final goal is to move everybody towards to UTF-8, I'm not sure how it's a good thing.
The final goal (the third motivation of the pep 597) is changing the default encoding (i.e. encoding used when it is not specified) to UTF-8.
But forcing people to use UTF-8 even they specify locale encoding explicitly is not the goal. That's why I want to ignore UTF-8 mode when `encoding="locale"` is specified.
I think this is almost Windows-only issue, and "mbcs" can be used in Windows already. It is documented in https://docs.python.org/3/using/windows.html#utf-8-mode
So this is not a blocker. Just my preference.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43510>
_______________________________________
More information about the Python-bugs-list
mailing list