Message167741
| Author |
vstinner |
| Recipients |
chris.jerdonek, loewis, vstinner |
| Date |
2012年08月09日.00:17:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1344471461.67.0.603097282527.issue15595@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|