[FIX] P3: repair parsing of lessc compilation error

Coercing the result of the compilation to text is easier and more
portable than P3-specific code for putting the Popen streams in text
mode.

Fixes #19659
This commit is contained in:
Olivier Dony
2017-09-25 12:03:54 +02:00
parent d2c3c1debf
commit f565a18cad
+1 -1
View File
@@ -400,7 +400,7 @@ class AssetsBundle(object):
return ''
result = compiler.communicate(input=source.encode('utf-8'))
if compiler.returncode:
cmd_output = ''.join(result)
cmd_output = ''.join(misc.ustr(result))
if not cmd_output:
cmd_output = "Process exited with return code %d\n" % compiler.returncode
error = self.get_preprocessor_error(cmd_output, source=source)