commit 422bb60a14cd0d8e9dce24b7c92eefd0890ce9f7
Author: Thibaut Cuvelier <[email protected]>
Date: Thu Mar 3 01:57:16 2022 +0100
tex2lyx tests: set the encoding when reading a file, not all OSes default
to UTF-8
---
src/tex2lyx/test/runtests.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py
index 2ccaddc..103c74e 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:
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs