From e19b2a717efe5b223d34aaa7e354eb7fa93cc55d Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 10 Apr 2017 15:06:14 +0200 Subject: [PATCH] Set encoding correctly when reading layout files Patch from Enrico. --- lib/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configure.py b/lib/configure.py index be47cea7a0..bdd825f628 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -1374,7 +1374,7 @@ def checkLatexConfig(check_config, bool_docbook): if nodeclaration: continue testclasses.sort() - cl = open('chklayouts.tex', 'w') + cl = io.open('chklayouts.tex', 'w', encoding=enco) for line in testclasses: cl.write(line + '\n') cl.close() -- 2.39.2