Project

General

Profile

Actions

Bug #1157

closed

man could support gzipped pages

Added by Andrew Stormont almost 10 years ago. Updated over 6 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
Gerrit CR:

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 mandocClosedGarrett D'Amore2014-07-18

Actions
Actions #2

Updated by Yuri Pankov almost 10 years ago

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

Actions #3

Updated by Andrew Stormont almost 10 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.

Actions #4

Updated by Yuri Pankov almost 10 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.

Actions #5

Updated by Yuri Pankov almost 10 years ago

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

Actions #6

Updated by Andrew Stormont almost 10 years ago

Thanks, that makes the patch a bit simpler.

Actions #7

Updated by Albert Lee almost 10 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...

Actions #8

Updated by Yuri Pankov over 9 years ago

  • Assignee changed from Andrew Stormont to Yuri Pankov
Actions #9

Updated by Yuri Pankov over 9 years ago

  • Assignee deleted (Yuri Pankov)
Actions #10

Updated by Yuri Pankov over 6 years ago

  • Status changed from New to Closed

Done in #5025.

Actions

Also available in: Atom PDF