From f51b065a8e4c009d58038d96b27eb0a6f7fb4189 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Sun, 26 Feb 2017 12:48:39 -0800 Subject: Must use bytes when writing to os.open()'d file on py3, bytearray works on both py3 and py2 --- src/engine/SCons/Platform/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/SCons/Platform/__init__.py b/src/engine/SCons/Platform/__init__.py index ebdbb4c..1654d0a 100644 --- a/src/engine/SCons/Platform/__init__.py +++ b/src/engine/SCons/Platform/__init__.py @@ -217,7 +217,7 @@ class TempFileMunge(object): prefix = '@' args = list(map(SCons.Subst.quote_spaces, cmd[1:])) - os.write(fd, " ".join(args) + "\n") + os.write(fd, bytearray(" ".join(args) + "\n",'utf-8')) os.close(fd) # XXX Using the SCons.Action.print_actions value directly # like this is bogus, but expedient. This class should -- cgit v0.12