mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix utf-8 decoding error in file_is_overwritable of create_manpage_completions.py
This commit is contained in:
parent
bfb5fec330
commit
3d19b549c8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue