changeset 13624:7a2d5713360e

2075 man outputs "geqn should have been given a `-Tutf8' option" Reviewed by: Gary Mills <gary_mills@fastmail.fm> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Richard Lowe <richlowe@richlowe.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 10 Feb 2012 08:38:31 -0500
parents cd878e98cd0d
children 2933dbe8e1a8
files usr/src/cmd/man/src/man.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <jeffpc@31bits.net>. 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) {