Message346620
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. |
|
Date |
User |
Action |
Args |
2019-06-26 14:28:07 | vstinner | set | recipients:
+ vstinner, steve.dower |
2019-06-26 14:28:07 | vstinner | set | messageid: <1561559287.43.0.39764403862.issue37412@roundup.psfhosted.org> |
2019-06-26 14:28:07 | vstinner | link | issue37412 messages |
2019-06-26 14:28:07 | vstinner | create | |
|