# HG changeset patch # User Josef 'Jeff' Sipek # Date 1328881111 18000 # Node ID 7a2d5713360e30110fcdf51da29b1da2c2561b12 # Parent cd878e98cd0df79bf5b66eeeedbf048ff895c498 2075 man outputs "geqn should have been given a `-Tutf8' option" Reviewed by: Gary Mills Reviewed by: Garrett D'Amore Approved by: Richard Lowe diff -r cd878e98cd0d -r 7a2d5713360e usr/src/cmd/man/src/man.c --- a/usr/src/cmd/man/src/man.c Mon Feb 27 14:35:31 2012 -0800 +++ b/usr/src/cmd/man/src/man.c Fri Feb 10 08:38:31 2012 -0500 @@ -20,6 +20,7 @@ */ /* * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright 2012, Josef 'Jeff' Sipek . All rights reserved. */ /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T. */ @@ -528,6 +529,15 @@ /* release pathv allocated by split() */ freev(pathv); + /* + * Since we can't make use of GNU troff, set the path to ensure we + * find the one in /usr/bin first. + */ + if (putenv("PATH=/usr/bin") != 0) { + perror("putenv"); + exit(1); + } + fullpaths(&manpage); if (catmando) {