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 snaury
Recipients r.david.murray, snaury, socketpair
Date 2016-05-29.20:28:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464553726.28.0.767760708112.issue27154@psf.upfronthosting.co.za>
In-reply-to
Content
Didn't need to bisect, it's very easy to find the problematic commit, since writelines doesn't change that often:

https://hg.python.org/releases/2.7.11/rev/db842f730432

The old code was buggy in a sense that it always called PyObject_AsCharBuffer due to the way the condition is structured, but this bugginess was what allowed it to work correctly with unicode objects. After the commit unicode objects are treated like any other buffer, and that's why internal UCS2 or UCS4 representation gets written to the file.
History
Date User Action Args
2016-05-29 20:28:46snaurysetrecipients: + snaury, r.david.murray, socketpair
2016-05-29 20:28:46snaurysetmessageid: <1464553726.28.0.767760708112.issue27154@psf.upfronthosting.co.za>
2016-05-29 20:28:46snaurylinkissue27154 messages
2016-05-29 20:28:46snaurycreate