a fix from maciej who claims this fixes issues on some systems.

passes all tests so i just apply it.

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-06-17 18:04:36 +02:00
parent 504e42a62e
commit 3a8d13599e
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ def cmdexec(cmd):
universal_newlines=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = process.communicate()
out = py.builtin._totext(out, sys.getdefaultencoding())
err = py.builtin._totext(err, sys.getdefaultencoding())
out = py.builtin._totext(out, sys.stdout.encoding)
err = py.builtin._totext(err, sys.stderr.encoding)
status = process.poll()
if status:
raise ExecutionFailed(status, status, cmd, out, err)