From 422bb60a14cd0d8e9dce24b7c92eefd0890ce9f7 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Thu, 3 Mar 2022 01:57:16 +0100 Subject: [PATCH] tex2lyx tests: set the encoding when reading a file, not all OSes default to UTF-8 --- src/tex2lyx/test/runtests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5