From 5d4249c06cb6e02d58d93bb8db4615ae5562d53f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 22 Aug 2018 18:29:39 +0200 Subject: [PATCH] doxygen: parse the Doxyfile as UTF-8. Otherwise it blows up on Doxyfiles with non-ASCII characters when system locale is not UTF-8. --- doxygen/dox2html5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 8ab843dd..7f3e8bb2 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -2782,7 +2782,7 @@ list using and return [i.replace('\\"', '"').replace('\\\'', '\'') for i in out], backslash - with open(doxyfile) as f: + with open(doxyfile, encoding='utf-8') as f: continued_line = None for line in f: line = line.strip() -- 2.30.2