Print this page
man outputs "geqn should have been given a `-Tutf8' option"

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, Josef 'Jeff' Sipek <jeffpc@josefsipek.net>. All rights reserved.
  */
 
 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989  AT&T.   */
 /*              All rights reserved.                                    */
 

@@ -526,10 +527,19 @@
         manpage = build_manpath(pathv, bmp_flags);
 
         /* 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) {
                 catman(manpage, argv+optind, argc-optind);
                 exit(0);