buildtools/wafsamba: Decode result of Popen as unicode/string
authorNoel Power <noel.power@suse.com>
Sun, 25 Nov 2018 00:59:04 +0000 (00:59 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:25 +0000 (10:38 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_cross.py

index eee31179fed110eaf366de92e9d84a6f7bfde93b..f9c4b10e82bdf7172bf6dfffd1a683704a2430c3 100644 (file)
@@ -121,7 +121,7 @@ class cross_Popen(Utils.subprocess.Popen):
                                stdout=Utils.subprocess.PIPE,
                                stderr=Utils.subprocess.PIPE)
                 ce_out, ce_err = p.communicate()
-                ans = (p.returncode, ce_out)
+                ans = (p.returncode, ce_out.decode('utf8'))
                 add_answer(ca_file, msg, ans)
             else:
                 args = newargs