From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:00:38
|
Commit-ID: 750bc50aa8306b0687d3d8bba6ef84d6d2224325 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=750bc50aa8306b0687d3d8bba6ef84d6d2224325 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 3 Nov 2018 14:50:09 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:45 +0300 test: nasm-t -- Write text data in utf8 form Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/nasm-t.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/travis/nasm-t.py b/travis/nasm-t.py index b7d8534..97278f8 100755 --- a/travis/nasm-t.py +++ b/travis/nasm-t.py @@ -363,13 +363,13 @@ def test_update(desc): match = desc['_base-dir'] + os.sep + t['stdout'] print("\tMoving %s to %s" % ('stdout', match)) with open(match, "wb") as f: - f.write(stdout) + f.write(stdout.encode("utf-8")) f.close() if 'stderr' in t: match = desc['_base-dir'] + os.sep + t['stderr'] print("\tMoving %s to %s" % ('stderr', match)) with open(match, "wb") as f: - f.write(stderr) + f.write(stderr.encode("utf-8")) f.close() return test_updated(desc['_test-name']) |