-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compressed man pages are shown unformatted #4272
Comments
Please show the output of
and
|
Note: mc.1 was only an example, this actually affects all compressed man pages on my system. Anyway, here we go:
Please let me know if you need any further details. |
Please show the output of
|
Sure, no problem:
|
|
Replying to andrew_b:
Oops, sorry, my mistake:
|
In [8857423] we changed the method of man page recognition from regex to type. type method means that we used the output of file utility. Now in the mc.ext we have:
Let's look at the output of file. You case:
And mine one:
Or
I suppose that your file is newer than mine and it's output isn't matched the regexp from mc.ext anymore. |
relaxing the regexp to an unanchored "\<troff\>.*<foo> compressed" should do (i'm assuming this is using gnu extended regexp style). |
Replying to andrew_b:
Yes, indeed:
I only recently upgraded from Slackware-14.2's original file-5.36 to Slackware-current's file-5.40. 5.36 had its own set of problems, coincidentally also mainly related to mcview & man pages. :-) |
Replying to ossi:
No, unfortunately not. The mcviewer call still looks like this:
I assume this is because of first match wins in mc.ext, and ...
..., which also matches, comes before ...
... (I already removed the ^ anchor for testing). |
Replying to andrew_b:
No, still doesn't work, sorry. Same problem as ossi's quick-fix to remove the "^" anchor, ie. the match for generic gzipped data in lines 344-346 comes before the matches for compressed man pages later on and wins. It only works if I comment out these lines in mc.ext, ie. the "type/\(gzip compressed" line and the two corresponding "Open=" and "View=" entries below.
Maybe moving (all of the?) the generic type/<something> matches to the end of mc.ext would help? |
Replying to ZlatkO:
There is no any data in those lines. Please test the branch, not the commit as patch on top of some state of codebase. |
Replying to andrew_b:
Oops, sorry, my bad. What I did was to download the changeset as a diff, and apply that on top of 4.8.27. It didn't occur to me that I had to checkout and build the whole branch. |
Okay, I rebuilt mc from the 4272_mc.ext_man_pages branch and the problem seems to be gone now indeed. Compressed man pages are now viewed properly formatted again. Thanks a lot! :-) |
Thanks for the feedback! |
|
Important
This issue was migrated from Trac:
ZlatkO
(zlatko-m-c-org@….net)ossi
(@ossilator)While working on #4271, I noticed that in 4.8.27, compressed man pages are shown unformatted (ie. "as-is" roff code) both with <F3> (view) and with <ENTER> (execute). Switching back to 4.8.26 makes things work as expected again, ie. viewed formatted with mcview on <F3>, and processed through nroff/man/less on <ENTER>.
To reproduce: gzip mc.1, then hit <F3> or <ENTER> on the resulting mc.1.gz.
The text was updated successfully, but these errors were encountered: