Message166362
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). |
|
Date |
User |
Action |
Args |
2012-07-25 08:03:23 | vstinner | set | recipients:
+ vstinner, loewis, ishimoto, tim.golden, ezio.melotti |
2012-07-25 08:03:23 | vstinner | set | messageid: <1343203403.37.0.695980484633.issue15441@psf.upfronthosting.co.za> |
2012-07-25 08:03:17 | vstinner | link | issue15441 messages |
2012-07-25 08:03:17 | vstinner | create | |
|