Problem while viewing rotated log files

Oleg Tarasov subscriber at osk.com.ua
Fri Jun 24 07:50:55 UTC 2005


Hello,

/dev/rob0 <rob0 at gmx.co.uk> wrote:
> Press F8 to switch to raw mode. Note, that saves state, so if you try
> viewing a groff source file later it will be raw. You'd have to press 
> F8 again to toggle it back.
Switching to raw mode when viewing COMPRESSED logrotated files comes
to a view of contents of archive (not very readable thing)

> Feature, not a bug. :) Try browsing your man directories and view the
> man pages. (I actually use the mc viewer as my man pager.)

OK. I tried to view man pages. The actual width of man pages is not 64
characters so I see almost all rows breaked earlier then it actually
ends and all man looks like:

bla bla bla bla bla bla bla bla bla bla bla
bla bla
bla bla bla bla bla bla bla bla bla bla bla
bla bla

Is that OK?

Leonard den Ottolander <leonard at den.ottolander.nl> wrote:

> The problem with all this is that the file command does not reliably
> test the file type inside b/gzipped files so we have to do some
> trickery.

> Does the attached patch fix the issue (adds a test for the location
> /var/log)?

The patch fixes problem viewing rotated bzip2 files. There are more
like gzip and uncompressed files (like SQUID logs which are not
located in /var/log), where the problem persists

Maybe it would be better to make this a config option? Or to use it
only in man dirs rather then excluding log dirs?


-- 
Best regards,
 Oleg Tarasov                          mailto:subscriber at osk.com.ua




More information about the mc mailing list