diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-26 15:31:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-26 15:31:12 (GMT) |
commit | 689830ee6243126798a6c519c05aa11ba73db7cd (patch) | |
tree | 165d26fd54d4853988429c3731234cba84c6ce68 /Misc | |
parent | c6a2320e876354ee62cf8149b849bcff9492d38a (diff) | |
download | cpython-689830ee6243126798a6c519c05aa11ba73db7cd.zip cpython-689830ee6243126798a6c519c05aa11ba73db7cd.tar.gz cpython-689830ee6243126798a6c519c05aa11ba73db7cd.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-06-26-16-28-59.bpo-37412.lx0VjC.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-06-26-16-28-59.bpo-37412.lx0VjC.rst b/Misc/NEWS.d/next/Library/2019-06-26-16-28-59.bpo-37412.lx0VjC.rst new file mode 100644 index 0000000..3ce4102 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-06-26-16-28-59.bpo-37412.lx0VjC.rst @@ -0,0 +1,3 @@ +The :func:`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. |