Message 274518 - Python tracker (original) (raw)
Martin Panter added the comment:
Also, should encoding=... or errors=... be an error if universal_newlines=False (the default)?
Right. But if encoding or errors is used, universal_newlines value should be set automatically to True.
For example, I expect Unicode when writing:
output = subprocess.call(cmd, stdout=subprocess.PIPE, encoding='utf8').stdout