2 # Emulate nroff with groff.
6 # First try the "locale charmap" command, because it's most reliable.
7 # On systems where it doesn't exist, look at the environment variables.
8 case "`locale charmap 2>/dev/null`" in
16 case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
19 iso_8859_1 |
*.ISO-8859-1
)
24 case "$LESSCHARSET" in
44 # ignore these options
47 echo "$prog: option $1 requires an argument" >&2
51 -Tascii |
-Tlatin1 |
-Tutf8 |
-Tcp1047)
54 # ignore other devices
63 # Solaris 2.2 `man' uses -u0; ignore it,
64 # since `less' and `more' can use the emboldening info.
72 echo "$prog: invalid option $1" >&2
80 # This shell script is intended for use with man, so warnings are
81 # probably not wanted. Also load nroff-style character definitions.
82 exec groff $safer -Wall -mtty-char $T $opts ${1+"$@"}