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 689830e) Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
@vstinner: Status check is done, and it's a success ✅ . |
|
@vstinner: Status check is done, and it's a success ✅ . |
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 689830e)
Co-authored-by: Victor Stinner vstinner@redhat.com
https://bugs.python.org/issue37412