Author vstinner
Recipients eric.araujo, nils, tarek, vstinner, zegreek
Date 2010-12-25.22:56:50
SpamBayes Score 3.36099e-05
Marked as misclassified No
Message-id <1293317844.21272.195.camel@marge>
In-reply-to <>
Le samedi 25 décembre 2010 à 22:35 +0000, Éric Araujo a écrit :
> Victor: Your patch uses os.fsencode, so porting to distutils2 won’t be
> easy.

In Python 3.1, you can replace name=os.fsencode(name) by
name=name.encode(sys.getfilesystemencoding(), 'surrogateescape'). The
mbcs codec doesn't support surrogateescape. In Python 3.2 it does now
raise an error (and so os.fsencode() uses strict error handler if the
encoding is mbcs), whereas Python 3.1 just ignores the error handler (it
uses 'ignore' to encode).

In Python 2, self.executable is already a byte string (you don't need
Date User Action Args
2010-12-25 22:56:52vstinnersetrecipients: + vstinner, tarek, eric.araujo, zegreek, nils
2010-12-25 22:56:50vstinnerlinkissue6011 messages
2010-12-25 22:56:50vstinnercreate