summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-26 16:14:30 (GMT)
committerGitHub <noreply@github.com>2019-06-26 16:14:30 (GMT)
commit63429c839b19c6fe604deddcb12497443ca01a9a (patch)
tree0ef92a5da0d60cce3f576b0b47f5fd68ce9b6427 /Doc/whatsnew
parentdd4edbc5ad4cdb47e051e7cc0801d31d3786588b (diff)
downloadcpython-63429c839b19c6fe604deddcb12497443ca01a9a.zip
cpython-63429c839b19c6fe604deddcb12497443ca01a9a.tar.gz
cpython-63429c839b19c6fe604deddcb12497443ca01a9a.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. (cherry picked from commit 689830ee6243126798a6c519c05aa11ba73db7cd) Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.8.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 954f77d..8c2f80c 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -1228,6 +1228,11 @@ Changes in Python behavior
Changes in the Python API
-------------------------
+* 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.
+ (Contributed by Victor Stinner in :issue:`37412`.)
+
* :class:`subprocess.Popen` can now use :func:`os.posix_spawn` in some cases
for better performance. On Windows Subsystem for Linux and QEMU User
Emulation, Popen constructor using :func:`os.posix_spawn` no longer raise an