From gpalmer@orion.webspan.net  Tue Feb  4 17:12:19 1997
Received: from mail.webspan.net (mail.webspan.net [206.154.70.7])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA05266
          for <freebsd-gnats-submit@freebsd.org>; Tue, 4 Feb 1997 17:12:18 -0800 (PST)
Received: from orion.webspan.net (orion.webspan.net [206.154.70.5]) 
          by mail.webspan.net (WEBSPAN/970116) with ESMTP id UAA07590
          for <freebsd-gnats-submit@freebsd.org>; Tue, 4 Feb 1997 20:11:37 -0500 (EST)
Received: from orion.webspan.net (localhost [127.0.0.1]) 
          by orion.webspan.net (WEBSPN/970116) with ESMTP id UAA15823
          for <freebsd-gnats-submit@freebsd.org>; Tue, 4 Feb 1997 20:11:37 -0500 (EST)
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) 
          by mail.webspan.net (WEBSPAN/970116) with ESMTP id EAA09870
          for <gpalmer@webspan.net>; Tue, 4 Feb 1997 04:30:57 -0500 (EST)
Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA05356
          for <FreeBSD-gnats@freefall.FreeBSD.org>; Tue, 4 Feb 1997 01:30:30 -0800 (PST)
Received: (from jmg@localhost)
          by hydrogen.nike.efn.org (8.8.4/8.8.4)
	  id BAA28390; Tue, 4 Feb 1997 01:30:28 -0800 (PST)
Message-Id: <199702040930.BAA28390@hydrogen.nike.efn.org>
Date: Tue, 4 Feb 1997 01:30:28 -0800 (PST)
From: John-Mark Gurney <jmg@hydrogen.nike.efn.org>
Reply-To: gurney_j@efn.org
To: FreeBSD-gnats@freefall.FreeBSD.org
Subject: man -t is hardcoded to do postscript output (even though it says it passes it through troff)
X-Send-Pr-Version: 3.2

>Number:         2661
>Category:       gnu
>Synopsis:       man -t is hardcoded to do postscript output (even though it says it passes it through troff)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb  4 17:20:01 PST 1997
>Closed-Date:    Wed Feb 5 06:24:39 PST 1997
>Last-Modified:  Wed Feb  5 06:25:01 PST 1997
>Originator:     John-Mark Gurney
>Release:        FreeBSD 2.2-960801-SNAP i386
>Organization:
Cu Networking
>Environment:

pretty much any freebsd system...
	

>Description:

if you do something like:
export GROFF_TYPESETTER=lj4
man -t sh > /tmp/output.lj4

and look at /tmp/output.lj4 you will see postscript output even though the
environment setting is for lj4... basicly the man program is hardcoding to
output postscript...  yes this may break some scripts but it's doubtful that
there will be an environment that sets GROFF_TYPESETTER to something else, and
still wants postscript output from man -t, but it's possible...
	

>How-To-Repeat:

see above
	

>Fix:
	
apply this patch:

Index: Makefile.inc
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/man/Makefile.inc,v
retrieving revision 1.12
diff -c -r1.12 Makefile.inc
*** Makefile.inc	1996/05/22 15:53:19	1.12
--- Makefile.inc	1997/02/04 09:24:37
***************
*** 7,13 ****
  bindir=			${BINDIR}
  pager=			more -s
  manpath_config_file=	/etc/manpath.config
! troff=			/usr/bin/groff -Tps -man
  nroff=                  /usr/bin/groff -Wall -mtty-char -Tascii -man
  apropos=		/usr/bin/apropos
  whatis=			/usr/bin/whatis
--- 7,13 ----
  bindir=			${BINDIR}
  pager=			more -s
  manpath_config_file=	/etc/manpath.config
! troff=			/usr/bin/groff -man
  nroff=                  /usr/bin/groff -Wall -mtty-char -Tascii -man
  apropos=		/usr/bin/apropos
  whatis=			/usr/bin/whatis
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Wed Feb 5 06:24:39 PST 1997 
State-Changed-Why:  
Suggested patch applied. 
>Unformatted:
John-Mark Gurney
