[issue43731] PEP 597: logging.fileConfig() uses locale encoding.
Inada Naoki
report at bugs.python.org
Tue Apr 13 19:33:39 EDT 2021
Inada Naoki <songofacandy at gmail.com> added the comment:
> Ah, so you want to emit an EncodingWarning when fileConfig(filename) is called without specifying an encoding, right?
Yes, but only when the user uses `PYTHONWARNDEFAULTENCODING`.
I already added `export PYTHONWARNDEFAULTENCODING=1` in `.bashrc` in my mac and Linux machine.
In the future, config file should be read with UTF-8 by default.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43731>
_______________________________________
More information about the Python-bugs-list
mailing list