Message134972
| Author |
vstinner |
| Recipients |
Arfrever, alexis, eric.araujo, hagen, lemburg, mgorny, tarek, vstinner |
| Date |
2011年05月02日.13:53:21 |
| SpamBayes Score |
9.0316615e-05 |
| Marked as misclassified |
No |
| Message-id |
<1304344401.86.0.166167616777.issue10419@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> copy_script-2.patch uses os.fsencode(), which doesn't exist in Python 3.1.
Correct, with Python 3.1, you can use filename.encode(sys.getfilesystemencoding(), 'surrogateescape'). But you must use os.fsencode() with Python >= 3.2 because on Windows, you cannot use surrogateescape with MBCS (you should use the strict error handler). |
|