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 ezio.melotti, ishimoto, loewis, tim.golden, vstinner
Date 2012-07-25.08:03:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343203403.37.0.695980484633.issue15441@psf.upfronthosting.co.za>
In-reply-to
Content
The following change is a major change on how Python handles undecodable filenames on Windows:

-    return PyUnicode_DecodeMBCS(s, size, NULL);
+    return PyUnicode_DecodeMBCS(s, size, "surrogateescape");

I disagree with this change, Python should not generate surrogates *on Windows*.

By the way, there is also os.fsdecode(), it has the same behaviour than PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize() (it uses the "strict" error handler on Windows).
History
Date User Action Args
2012-07-25 08:03:23vstinnersetrecipients: + vstinner, loewis, ishimoto, tim.golden, ezio.melotti
2012-07-25 08:03:23vstinnersetmessageid: <1343203403.37.0.695980484633.issue15441@psf.upfronthosting.co.za>
2012-07-25 08:03:17vstinnerlinkissue15441 messages
2012-07-25 08:03:17vstinnercreate