]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34523: Py_DecodeLocale() use UTF-8 on Windows (GH-8998)
authorVictor Stinner <vstinner@redhat.com>
Wed, 29 Aug 2018 17:32:47 +0000 (19:32 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Aug 2018 17:32:47 +0000 (19:32 +0200)
commitc5989cd87659acbfd4d19dc00dbe99c3a0fc9bd2
tree9bd325d65e1cee9696fb98998db0bdb2a2e21b41
parent70fead25e503a742ad4c919b151b9b2b5facee36
bpo-34523: Py_DecodeLocale() use UTF-8 on Windows (GH-8998)

Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8 encoding on
Windows if Py_LegacyWindowsFSEncodingFlag is zero.

pymain_read_conf() now sets Py_LegacyWindowsFSEncodingFlag in its
loop, but restore its value at exit.
Doc/c-api/sys.rst
Lib/test/test_embed.py
Misc/NEWS.d/next/C API/2018-08-29-18-48-47.bpo-34523.lLQ8rh.rst [new file with mode: 0644]
Modules/main.c
Python/fileutils.c