[New-bugs-announce] [issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

STINNER Victor report at bugs.python.org
Sun Nov 1 13:12:56 EST 2020


New submission from STINNER Victor <vstinner at python.org>:

When the UTF-8 Mode is enabled, sys.stdout.encoding is always UTF-8, whereas os.devide_encoding(sys.stdout.fileno()) returns the locale encoding. os.devide_encoding() must return UTF-8 when the UTF-8 Mode is used.

----------
components: Library (Lib)
messages: 380156
nosy: vstinner
priority: normal
severity: normal
status: open
title: os.device_encoding() doesn't respect the UTF-8 Mode
versions: Python 3.10

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


More information about the New-bugs-announce mailing list