aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/tools/create_manpage_completions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py
index bd15eaeb..ea7a6608 100755
--- a/share/tools/create_manpage_completions.py
+++ b/share/tools/create_manpage_completions.py
@@ -664,7 +664,7 @@ class TypeDeroffManParser(ManParser):
# Raises IOError if it cannot be opened
def file_is_overwritable(path):
result = False
- file = open(path, 'r')
+ file = codecs.open(path, "r", encoding="utf-8")
for line in file:
# Skip leading empty lines
line = line.strip()