From: Thibaut Cuvelier Date: Thu, 3 Mar 2022 00:57:16 +0000 (+0100) Subject: tex2lyx tests: set the encoding when reading a file, not all OSes default to UTF-8 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=422bb60a14cd0d8e9dce24b7c92eefd0890ce9f7;p=features.git tex2lyx tests: set the encoding when reading a file, not all OSes default to UTF-8 --- diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py index 2ccaddcc46..103c74e307 100755 --- a/src/tex2lyx/test/runtests.py +++ b/src/tex2lyx/test/runtests.py @@ -127,8 +127,8 @@ def main(argv): else: t1 = time.ctime(os.path.getmtime(lyxfile1)) t2 = time.ctime(os.path.getmtime(lyxfile2)) - f1 = open(lyxfile1, 'r') - f2 = open(lyxfile2, 'r') + f1 = open(lyxfile1, 'r', encoding="utf8") + f2 = open(lyxfile2, 'r', encoding="utf8") lines1 = f1.readlines() i1 = 0 for linex in lines1: