Set encoding correctly when reading layout files

Patch from Enrico.
This commit is contained in:
Jean-Marc Lasgouttes 2017-04-10 15:06:14 +02:00
parent 20696ecb7e
commit e19b2a717e

View 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()