Author vstinner
Recipients steve.dower, vstinner
Date 2019-06-26.14:28:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:07vstinnersetrecipients: + vstinner, steve.dower
2019-06-26 14:28:07vstinnersetmessageid: <>
2019-06-26 14:28:07vstinnerlinkissue37412 messages
2019-06-26 14:28:07vstinnercreate