From: Vladimír Vondruš Date: Wed, 22 Aug 2018 16:29:39 +0000 (+0200) Subject: doxygen: parse the Doxyfile as UTF-8. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=5d4249c06cb6e02d58d93bb8db4615ae5562d53f;p=blog.git doxygen: parse the Doxyfile as UTF-8. Otherwise it blows up on Doxyfiles with non-ASCII characters when system locale is not UTF-8. --- 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()