Rafael Zanella <[EMAIL PROTECTED]> added the comment:

On subprocess.py the new method communicate() doesn't encode the string:

"""
_communicate(self, input):
...
  if isinstance(input, str):
    input = input.encode()
...
"""

I've attached a patch that adds the str.encode() call on communicate().

----------
keywords: +patch
nosy: +zanella
Added file: http://bugs.python.org/file10779/subprocess_strEncode.diff

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2683>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to