aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar bathtub <bathtubdev@gmail.com>2013-09-18 13:32:41 -0700
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-09-19 13:15:15 +0200
commitdf300e042b12cc045669f39a9b2c6f7296f0d2f9 (patch)
tree004c6c7f9965a6273a7329ae0d54a295a8481ca8 /share
parent3996f178e5c8c77e02a3a821d9367bd74f1a61ed (diff)
Small fix for fish_update_completions (amended)
Amended from https://github.com/fish-shell/fish-shell/pull/1003. Fix a Unicode parsing error; search man6.
Diffstat (limited to 'share')
-rwxr-xr-xshare/tools/create_manpage_completions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py
index 8bf41e42..14bf13ee 100755
--- a/share/tools/create_manpage_completions.py
+++ b/share/tools/create_manpage_completions.py
@@ -572,7 +572,7 @@ class TypeDarwinManParser(ManParser):
# Extract the description
desc_lines = []
while lines and not self.is_option(lines[0]):
- line = lines.pop(0).strip()
+ line = lossy_unicode(lines.pop(0).strip())
if line.startswith('.'):
line = self.groff_replace_escapes(line)
line = self.trim_groff(line).strip()
@@ -871,7 +871,7 @@ def get_paths_from_manpath():
sys.exit(-1)
result = []
for parent_path in parent_paths:
- for section in ['man1', 'man8']:
+ for section in ['man1', 'man6', 'man8']:
directory_path = os.path.join(parent_path, section)
try:
names = os.listdir(directory_path)