groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] 09/10: groff(1): Fix error in example.


From: Dave Kemper
Subject: Re: [groff] 09/10: groff(1): Fix error in example.
Date: Fri, 5 Aug 2022 18:10:45 -0500

> --- a/src/roff/groff/groff.1.man
> +++ b/src/roff/groff/groff.1.man
> @@ -1801,7 +1801,7 @@ constructing a pipeline to page the output.
>  .RS
>  .P
>  .EX
> -groff \-t \-man /usr/share/man/man1/groff.1.man | less \-R
> +groff \-t \-man -Tutf8 /usr/share/man/man1/groff.1.man | less \-R

The trivial problem with this change is that the \ in front of the new
-T flag is missing.

The slightly larger problem is that it hard-codes into the man page
text an assumption about the user's encoding environment.  Were this
difficult to avoid, that'd be one thing, but all that would have
change is the "groff" command to "nroff," since nroff.sh is pretty
robust at figuring out the user's encoding.  And nroff has already
been mentioned on this page a few times, so it wouldn't be coming out
of left field at this point.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]