Bug #1157
closedman could support gzipped pages
0%
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
Related issues
Updated by Andrew Stormont almost 11 years ago
- File illumos-man-gz.diff illumos-man-gz.diff added
Updated by Yuri Pankov almost 11 years ago
I'm working on it as part of other man related updates.
Updated by Andrew Stormont almost 11 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.
Updated by Yuri Pankov almost 11 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.
Updated by Yuri Pankov almost 11 years ago
What I mean is that you don't need the the 'gzipit', just use `gzcat -f` instead of `cat` for all files.
Updated by Andrew Stormont almost 11 years ago
- File illumos-man-gzcat.diff illumos-man-gzcat.diff added
Thanks, that makes the patch a bit simpler.
Updated by Albert Lee almost 11 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...
Updated by Yuri Pankov over 10 years ago
- Assignee changed from Andrew Stormont to Yuri Pankov