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 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).
History
Date User Action Args
2011-05-02 13:53:22vstinnersetrecipients: + vstinner, lemburg, tarek, eric.araujo, hagen, Arfrever, alexis, mgorny
2011-05-02 13:53:21vstinnersetmessageid: <1304344401.86.0.166167616777.issue10419@psf.upfronthosting.co.za>
2011-05-02 13:53:21vstinnerlinkissue10419 messages
2011-05-02 13:53:21vstinnercreate