This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients steve.dower, vstinner
Date 2019-06-26.14:28:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561559287.43.0.39764403862.issue37412@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-06-26 14:28:07vstinnersetrecipients: + vstinner, steve.dower
2019-06-26 14:28:07vstinnersetmessageid: <1561559287.43.0.39764403862.issue37412@roundup.psfhosted.org>
2019-06-26 14:28:07vstinnerlinkissue37412 messages
2019-06-26 14:28:07vstinnercreate