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 chris.jerdonek, loewis, vstinner
Date 2012-08-09.00:17:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There is a bug, but I'm not conviced that multibyte encodings are used as locale encoding.

About your patch: you should test the 3 types of newlines, so use a string like: '1\r\n2\r3\n4'.

+            # Popen() defaults to locale.getpreferredencoding(False).
+            locale.getpreferredencoding = lambda do_setlocale: 'utf-16'

FYI it's not directly Popen() which uses the locale encoding, but TextIOWrapper.
Date User Action Args
2012-08-09 00:17:55vstinnersetrecipients: + vstinner, loewis, chris.jerdonek
2012-08-09 00:17:41vstinnersetmessageid: <>
2012-08-09 00:17:39vstinnerlinkissue15595 messages
2012-08-09 00:17:35vstinnercreate