Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2011 15:07:28 +0000 (UTC)
From:      Ulrich Spoerlein <uqs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224657 - head/usr.bin/catman
Message-ID:  <201108051507.p75F7SKf010724@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: uqs
Date: Fri Aug  5 15:07:28 2011
New Revision: 224657
URL: http://svn.freebsd.org/changeset/base/224657

Log:
  For POLA reasons, disable SGR sequences in catpages.
  
  See r222647 for a similar change to bsd.doc.mk after SGR was generally
  turned on in groff.
  
  Suggested by:	ru
  Approved by:	re (kib)

Modified:
  head/usr.bin/catman/catman.c

Modified: head/usr.bin/catman/catman.c
==============================================================================
--- head/usr.bin/catman/catman.c	Fri Aug  5 15:02:17 2011	(r224656)
+++ head/usr.bin/catman/catman.c	Fri Aug  5 15:07:28 2011	(r224657)
@@ -432,7 +432,7 @@ process_page(char *mandir, char *src, ch
 	}
 	snprintf(tmp_file, sizeof tmp_file, "%s.tmp", cat);
 	snprintf(cmd, sizeof cmd,
-	    "%scat %s | tbl | nroff -T%s -man | %s > %s.tmp",
+	    "%scat %s | tbl | nroff -c -T%s -man | %s > %s.tmp",
 	    zipped == BZIP ? BZ2CAT_CMD : zipped == GZIP ? GZCAT_CMD : "",
 	    src, nroff_device,
 	    zipped == BZIP ? BZ2_CMD : zipped == GZIP ? GZ_CMD : "cat",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108051507.p75F7SKf010724>