Author vstinner
Recipients Arfrever, vstinner
Date 2010-04-25.22:40:52
SpamBayes Score 2.45711e-07
Marked as misclassified No
Message-id <>
I blocked the fix in Python 3.1 because it's non trivial and I prefer to avoid complex changes in Python 3.1. But then I realized that Python 3.1 has two bugs about environment variables.

It uses sys.getfilesystemencoding()+surrogateecape to decode variables and sys.getdefaultencoding()+strict to encode variables: the encoding is different!

It counts the number of *characters* to allocate the *byte* string buffer and so non-ASCII values are truncated.

So I decided to backport the fix: r80494.
Date User Action Args
2010-04-25 22:40:54vstinnersetrecipients: + vstinner, Arfrever
2010-04-25 22:40:53vstinnersetmessageid: <>
2010-04-25 22:40:52vstinnerlinkissue8391 messages
2010-04-25 22:40:52vstinnercreate