[Scons-users] scons 3.0.1: 'ascii' codec can't decode
mpac1234 at will-hier-weg.de
mpac1234 at will-hier-weg.de
Tue Nov 28 10:26:24 EST 2017
I do not know why or how, but it seems the binary content of files appears as a python string in SCons/engine/node/Python.py:136 and decoding this as ascii fails.
Changing SCons/engine/Node/Python.py:135,136 from
for kid in self.children(None):
contents = contents + kid.get_contents().decode()
to
for kid in self.children(None):
contents = contents + kid.get_contents().encode('hex').decode()
makes the errors ('ascii' codec can't decode byte xxxx in position x: ordinal not in range(128)) disappear. But I have no idea if this is a valid fix or if it breaks anything else.
More information about the Scons-users
mailing list