Date: Tue, 4 Feb 1997 01:30:28 -0800 (PST) From: John-Mark Gurney <jmg@hydrogen.nike.efn.org> To: FreeBSD-gnats@freefall.FreeBSD.org Subject: gnu/2661: man -t is hardcoded to do postscript output (even though it says it passes it through troff) Message-ID: <199702040930.BAA28390@hydrogen.nike.efn.org> Resent-Message-ID: <199702050120.RAA06671@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 4 17:20:01 PST 1997 >Last-Modified: >Originator: John-Mark Gurney >Organization: Cu Networking >Release: FreeBSD 2.2-960801-SNAP i386 >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 >Audit-Trail: >Unformatted: John-Mark Gurney
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702040930.BAA28390>