[prev in list] [next in list] [prev in thread] [next in thread]
List: monetdb-checkins
Subject: MonetDB: Oct2020 - We expect UTF-8 encoded files
From: Pedro Ferreira <commits+pedro.ferreira=monetdbsolutions.com () monetdb ! org>
Date: 2020-12-29 9:29:05
Message-ID: hg.6b670d5c7841.1609234145.6315528441665844383 () monetdb-vm0 ! spin-off ! cwi ! nl
[Download RAW message or body]
Changeset: 6b670d5c7841 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6b670d5c7841
Modified Files:
testing/Mtest.py.in
Branch: Oct2020
Log Message:
We expect UTF-8 encoded files
diffs (30 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1408,22 +1408,22 @@ def PerformDir(env, testdir, testlist, B
if pSrvr is not None:
pSrvr.terminate()
pSrvr = None
- o = open(os.path.join(TSTTRGDIR, 'SingleServer.out.html'), 'w')
+ o = openutf8(os.path.join(TSTTRGDIR, 'SingleServer.out.html'), 'w')
o.write('<html><head><title>{} standard output</title></head>'
'<body><pre>\n'.format(TSTDIR))
e = F_OK
- for line in open(os.path.join(TSTTRGDIR, 'SingleServer.out')):
+ for line in openutf8(os.path.join(TSTTRGDIR, 'SingleServer.out')):
if line != '\n' and not line.startswith('#'):
e = F_ERROR
ssout = F_ERROR
o.write(line.replace('&', '&').replace('<', '<').replace('>', '>'))
o.write('</pre></body></html>\n')
o.close()
- o = open(os.path.join(TSTTRGDIR, 'SingleServer.err.html'), 'w')
+ o = openutf8(os.path.join(TSTTRGDIR, 'SingleServer.err.html'), 'w')
o.write('<html><head><title>{} standard error</title></head>'
'<body><pre>\n'.format(TSTDIR))
e = F_OK
- for line in open(os.path.join(TSTTRGDIR, 'SingleServer.err')):
+ for line in openutf8(os.path.join(TSTTRGDIR, 'SingleServer.err')):
if line != '\n' and not line.startswith('#'):
e = F_ERROR
sserr = F_ERROR
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic