From: Jean-Marc Lasgouttes Date: Mon, 10 Apr 2017 13:06:14 +0000 (+0200) Subject: Set encoding correctly when reading layout files X-Git-Tag: 2.3.0alpha1~89 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e19b2a71;p=features.git Set encoding correctly when reading layout files Patch from Enrico. --- 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()