Bug #1157
closed
man could support gzipped pages
Added by Andrew Stormont almost 11 years ago.
Updated almost 8 years ago.
Category:
cmd - userland programs
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
I'm working on it as part of other man related updates.
I've spoken to Garrett and it seems that we could use my patch as a stop-gap solution until your changes are ready.
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.
What I mean is that you don't need the the 'gzipit', just use `gzcat -f` instead of `cat` for all files.
Thanks, that makes the patch a bit simpler.
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...
- Assignee changed from Andrew Stormont to Yuri Pankov
- Assignee deleted (
Yuri Pankov)
- Status changed from New to Closed
Also available in: Atom
PDF