]> granicus.if.org Git - python/commit
bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)
authorVictor Stinner <vstinner@redhat.com>
Wed, 26 Jun 2019 15:31:12 +0000 (17:31 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 15:31:12 +0000 (17:31 +0200)
commit689830ee6243126798a6c519c05aa11ba73db7cd
tree165d26fd54d4853988429c3731234cba84c6ce68
parentc6a2320e876354ee62cf8149b849bcff9492d38a
bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)

The os.getcwdb() function now uses the UTF-8 encoding on Windows,
rather than the ANSI code page: see PEP 529 for the rationale. The
function is no longer deprecated on Windows.

os.getcwd() and os.getcwdb() now detect integer overflow on memory
allocations. On Unix, these functions properly report MemoryError on
memory allocation failure.
Doc/library/os.rst
Doc/whatsnew/3.8.rst
Lib/test/test_os.py
Misc/NEWS.d/next/Library/2019-06-26-16-28-59.bpo-37412.lx0VjC.rst [new file with mode: 0644]
Modules/posixmodule.c