]> git.lyx.org Git - features.git/commitdiff
Set encoding correctly when reading layout files
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 10 Apr 2017 13:06:14 +0000 (15:06 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 10 Apr 2017 13:06:14 +0000 (15:06 +0200)
Patch from Enrico.

lib/configure.py

index be47cea7a08252a0b0ccc61a186854204dd66678..bdd825f628cba168dba0af83865f11f41e724ba8 100644 (file)
@@ -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()