[6.0] 0e82401e6 We need UTF8 encoding for Python3
Reza Naghibi
reza at naghibi.com
Tue Apr 20 18:27:06 UTC 2021
commit 0e82401e659a93a9d9a838e1a34a252cde0a288b
Author: Steven <wojcikjsteven at gmail.com>
Date: Wed Apr 14 16:51:09 2021 -0400
We need UTF8 encoding for Python3
diff --git a/doc/sphinx/vtc-syntax.py b/doc/sphinx/vtc-syntax.py
index c0d9435c8..8b15ca7e9 100644
--- a/doc/sphinx/vtc-syntax.py
+++ b/doc/sphinx/vtc-syntax.py
@@ -38,7 +38,7 @@ def parse_file(fn, cl, tl, sl):
section = ""
resec = re.compile("[ /]\* SECTION: ")
- f = open(fn, "r")
+ f = open(fn, "r", encoding="UTF-8")
for l in f:
if "*/" in l:
More information about the varnish-commit
mailing list