[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Solaris 9 'man' command runs afoul of groff 1.19 SGR
From: |
Werner LEMBERG |
Subject: |
Re: Solaris 9 'man' command runs afoul of groff 1.19 SGR |
Date: |
Sat, 07 Jun 2003 09:54:03 +0200 (CEST) |
> The problem is that Sun's "man" command runs
> "nroff -u0 ... | col -x". Groff's nroff outputs SGR commands,
> but the Solaris 'col' command doesn't understand them and
> strips off the escapes.
Thanks for the patch, I've installed with slight modifications (see
below).
Werner
======================================================================
--- nroff.sh.old Tue Jan 28 09:40:44 2003
+++ nroff.sh Sat Jun 7 09:53:16 2003
@@ -58,9 +58,11 @@
# ignore other devices
;;
-u*)
- # Solaris 2.2 `man' uses -u0; ignore it,
+ # Solaris 2.2 through at least Solaris 9 `man' invokes
+ # `nroff -u0 ... | col -x'. Ignore the -u0,
# since `less' and `more' can use the emboldening info.
- ;;
+ # However, disable SGR, since Solaris `col' mishandles it.
+ opts="$opts -P-c" ;;
-v | --version)
echo "GNU nroff (groff) version @VERSION@"
exit 0 ;;