STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> 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).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10419>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to