Subject: Re: 'more' problems
To: Erik Huizing <huizing@cpsc.ucalgary.ca>
From: Frederick Bruckman <fb@enteract.com>
List: port-mac68k
Date: 01/20/2000 06:38:19
On Wed, 19 Jan 2000, Erik Huizing wrote:

>   I've noticed a few let's say quirks with more and less. Control
> characters (^L) and such show up in man pages, and some text files (output
> from gprof). 
> I also get tags like <AD> in the man page for cc:
> "       This  man  page  is not kept up to date except when volun<AD>
>        teers want to maintain it.   If  you  find  a  discrepancy	
> "

<AD> is iso-8859-1 for "soft-hyphen", which is intended to tell file
viewers that understand these things to break there if it occurs at
the end of a line. If you set LESSCHARSET to "latin1" in the
environment, "less" will at least display it as a regular hyphen.

The cat pages are now generated with -Tascii instead of -Tlatin1, so
this should not be a problem for 1.4.2 or 1.5.
 
> Also, sometimes, it seems like more "stalls" on some files, not quite
> displaying 24 lines of text (I know for a fact that the file is longer
> than 24 lines)

Hmmm. Does it look any better if you render the source page manually
with "nroff -Tascii -man /usr/share/man/man1/foo.1 | less"? You can
find the man page with "man -w foo". Alternatively "man -a foo" will
open both the cat page, and render the man page on the fly. If it
makes no difference, it could be a bad macro in the man page itself.

> Can someone provide some reasonable explaination and a possible fix? 
> This happens on my Centris 650 w/ NetBSD 1.4.1. less version 332, if
> that's any indication.