New submission from STINNER Victor <vstin...@redhat.com>:
On Windows, os.getcwdb() is implemented using getcwd() on Windows. This function uses the ANSI code page, whereas PEP 529 "Change Windows filesystem encoding to UTF-8" is supposed to use UTF-8 for all bytes paths and filenames. Moreover, this function emits a DeprecationWarning, whereas PEP 529 was supposed to avoid the need to deprecated bytes paths and filenames on Windows. I guess that it was forgotten in the implementation of the PEP 529. Or was it a deliberate choice? Attached PR modify os.getcwdb() to use UTF-8. ---------- components: Library (Lib) messages: 346620 nosy: steve.dower, vstinner priority: normal severity: normal status: open title: os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37412> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com