Message166362
| 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: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 |
|