summaryrefslogtreecommitdiffstats
path: root/Tools/waf_unit_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/waf_unit_test.py')
-rw-r--r--Tools/waf_unit_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/waf_unit_test.py b/Tools/waf_unit_test.py
index 74d6c05..6ff6f72 100644
--- a/Tools/waf_unit_test.py
+++ b/Tools/waf_unit_test.py
@@ -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)