Commit bffbcec6 authored by ita1024's avatar ita1024

Merge branch 'waf_ut_enc' into 'master'

waf_unit_test: prevent error when dumping run to script and environment contains UTF-8 chars

See merge request !2220
parents 02c9f814 f903ad5f
......@@ -214,7 +214,7 @@ class utest(Task.Task):
'cmd': cmd
}
script_file = self.inputs[0].abspath() + '_run.py'
Utils.writef(script_file, script_code)
Utils.writef(script_file, script_code, encoding='utf-8')
os.chmod(script_file, Utils.O755)
if Logs.verbose > 1:
Logs.info('Test debug file written as %r' % script_file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment