Project

General

Profile

Bug #1157

man could support gzipped pages

Added by Andrew Stormont over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2011-06-27
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

The majority of man pages in NCP (all versions) are gzipped which means they can only be read with gnu man and not man from OS/Net or Illumos. Illumos could add support for these.

I've attached a patch that adds support for this. It's a bit of a hack but it's probably no worse than the code that's already in man :)


Files

illumos-man-gz.diff (2.84 KB) illumos-man-gz.diff Andrew Stormont, 2011-06-27 01:28 PM
illumos-man-gz.diff (2.79 KB) illumos-man-gz.diff Better patch Andrew Stormont, 2011-06-27 04:29 PM
illumos-man-gzcat.diff (2.45 KB) illumos-man-gzcat.diff Andrew Stormont, 2011-06-28 01:44 PM

Related issues

Related to illumos gate - Bug #5025: import and use mandocClosed2014-07-18

Actions

History

#2

Updated by Yuri Pankov over 8 years ago

I'm working on it as part of other man related updates.

#3

Updated by Andrew Stormont over 8 years ago

I've spoken to Garrett and it seems that we could use my patch as a stop-gap solution until your changes are ready.

#4

Updated by Yuri Pankov over 8 years ago

Sure.. Another option could be "fixing" zcat to accept -f option forcing it to allow non-compressed data to pass through unchanged and just using it instead of cat.

#5

Updated by Yuri Pankov over 8 years ago

What I mean is that you don't need the the 'gzipit', just use `gzcat -f` instead of `cat` for all files.

#6

Updated by Andrew Stormont over 8 years ago

Thanks, that makes the patch a bit simpler.

#7

Updated by Albert Lee over 8 years ago

You probably want to use strrchr and strcmp here. The gzcat also should be optional (man doesn't depend on gzip). #281 is another issue you can fix while you're here...

#8

Updated by Yuri Pankov over 8 years ago

  • Assignee changed from Andrew Stormont to Yuri Pankov
#9

Updated by Yuri Pankov about 8 years ago

  • Assignee deleted (Yuri Pankov)
#10

Updated by Yuri Pankov over 5 years ago

  • Status changed from New to Closed

Done in #5025.

Also available in: Atom PDF