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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/man/src/man.c
          +++ new/usr/src/cmd/man/src/man.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2012, Josef 'Jeff' Sipek <jeffpc@josefsipek.net>. All rights reserved.
  23   24   */
  24   25  
  25   26  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989  AT&T.   */
  26   27  /*              All rights reserved.                                    */
  27   28  
  28   29  /*
  29   30   * University Copyright- Copyright (c) 1982, 1986, 1988
  30   31   * The Regents of the University of California
  31   32   * All Rights Reserved
  32   33   *
↓ open down ↓ 488 lines elided ↑ open up ↑
 521  522                  }
 522  523          }
 523  524  
 524  525          pathv = split(manpath, ':');
 525  526  
 526  527          manpage = build_manpath(pathv, bmp_flags);
 527  528  
 528  529          /* release pathv allocated by split() */
 529  530          freev(pathv);
 530  531  
      532 +        /*
      533 +         * Since we can't make use of GNU troff, set the path to ensure we
      534 +         * find the one in /usr/bin first.
      535 +         */
      536 +        if (putenv("PATH=/usr/bin") != 0) {
      537 +                perror("putenv");
      538 +                exit(1);
      539 +        }
      540 +
 531  541          fullpaths(&manpage);
 532  542  
 533  543          if (catmando) {
 534  544                  catman(manpage, argv+optind, argc-optind);
 535  545                  exit(0);
 536  546          }
 537  547  
 538  548          /*
 539  549           * The manual routine contains windows during which
 540  550           * termination would leave a temp file behind.  Thus
↓ open down ↓ 2786 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX