STINNER Victor added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15595>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to