Message167741
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:55 | vstinner | set | recipients:
+ vstinner, loewis, chris.jerdonek |
2012-08-09 00:17:41 | vstinner | set | messageid: <1344471461.67.0.603097282527.issue15595@psf.upfronthosting.co.za> |
2012-08-09 00:17:39 | vstinner | link | issue15595 messages |
2012-08-09 00:17:35 | vstinner | create | |
|