[issue37111] Logging - Inconsistent behaviour when handling unicode
Inada Naoki
report at bugs.python.org
Wed Jun 12 19:52:58 EDT 2019
Inada Naoki <songofacandy at gmail.com> added the comment:
> I've left it as is using the same rationale as I guess open() has at the moment - "Errors should never pass silently. Unless explicitly silenced".
But open() is general purpose, and logging is for logging.
Note that stderr uses 'backslashreplace', even when PYTHONIOENCODING=ascii:strict is used.
And if we don't log something due to encoding error, doesn't it mean "errors may ignored completely silently by default"?
What logging does when UnicodeEncodeError is happened?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37111>
_______________________________________
More information about the Python-bugs-list
mailing list