]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42236: os.device_encoding() respects UTF-8 Mode (GH-23119)
authorVictor Stinner <vstinner@python.org>
Wed, 4 Nov 2020 10:20:10 +0000 (11:20 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Nov 2020 10:20:10 +0000 (11:20 +0100)
commit3529718925f40d14ed48d281d809187bc7314a14
tree1f51f7fb13e93df52a45291fe5384de6e9e09a16
parent0001a1b69ecda47b0406daa88c2943877580bcae
bpo-42236: os.device_encoding() respects UTF-8 Mode (GH-23119)

On Unix, the os.device_encoding() function now returns 'UTF-8' rather
than the device encoding if the Python UTF-8 Mode is enabled.
Doc/library/os.rst
Lib/test/test_utf8_mode.py
Misc/NEWS.d/next/Library/2020-11-02-23-05-17.bpo-42236.aJ6ZBR.rst [new file with mode: 0644]
Python/fileutils.c
Python/initconfig.c