diff options
author | nyorain <nyorain@gmail.com> | 2018-03-20 03:10:44 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-20 22:28:59 +0200 |
commit | dd614015e079d3ef6f64a38d349deca49b4f03ce (patch) | |
tree | ade977c419aa36af6800a293c1dbdc47014aa6e4 | |
parent | 58156ef7cfd56ddcbd230c510f363f49a2c172fd (diff) | |
download | meson-dd614015e079d3ef6f64a38d349deca49b4f03ce.zip meson-dd614015e079d3ef6f64a38d349deca49b4f03ce.tar.gz meson-dd614015e079d3ef6f64a38d349deca49b4f03ce.tar.bz2 |
Open mesontest logfiles in utf-8 mode
Otherwise unit tests fail on windows when they output some
non-utf8 data.
-rw-r--r-- | mesonbuild/mtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index fbd6e8b..4ed80b1 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -509,8 +509,8 @@ TIMEOUT: %4d self.logfilename = logfile_base + '.txt' self.jsonlogfilename = logfile_base + '.json' - self.jsonlogfile = open(self.jsonlogfilename, 'w') - self.logfile = open(self.logfilename, 'w') + self.jsonlogfile = open(self.jsonlogfilename, 'w', encoding='utf-8') + self.logfile = open(self.logfilename, 'w', encoding='utf-8') self.logfile.write('Log of Meson test suite run on %s\n\n' % datetime.datetime.now().isoformat()) |