summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner LEMBERG <wl@gnu.org>2003-06-07 21:44:40 +0000
committerWerner LEMBERG <wl@gnu.org>2003-06-07 21:44:40 +0000
commit54b9ca389f74ecc862f736749b0351ef11bc11ec (patch)
tree7cfb57f2a5f9281fe4ec7165589422262d90181c
parent8bc4883e0e54be0bb41faa0defedca4be51c2487 (diff)
downloadgroff-git-54b9ca389f74ecc862f736749b0351ef11bc11ec.tar.gz
* src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
-rw-r--r--ChangeLog4
-rw-r--r--src/roff/nroff/nroff.sh6
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fe6e043ab..e24f66d11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-07 Werner LEMBERG <wl@gnu.org>
+
+ * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
+
2003-06-05 Werner LEMBERG <wl@gnu.org>
* src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
diff --git a/src/roff/nroff/nroff.sh b/src/roff/nroff/nroff.sh
index 39268f7f6..a9d75a92c 100644
--- a/src/roff/nroff/nroff.sh
+++ b/src/roff/nroff/nroff.sh
@@ -58,9 +58,11 @@ for i
# 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 ;;