diff options
Diffstat (limited to 'contrib/groff/src/preproc/eqn/neqn.sh')
-rw-r--r-- | contrib/groff/src/preproc/eqn/neqn.sh | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/contrib/groff/src/preproc/eqn/neqn.sh b/contrib/groff/src/preproc/eqn/neqn.sh index 43fe1e8..dcea2ff 100644 --- a/contrib/groff/src/preproc/eqn/neqn.sh +++ b/contrib/groff/src/preproc/eqn/neqn.sh @@ -1,10 +1,25 @@ #!/bin/sh # Provision of this shell script should not be taken to imply that use of -# GNU eqn with groff -Tascii|-Tlatin1|-Tutf8|-Tcp1047 is supported. +# GNU eqn with groff -Tascii|-Tlatin1|-Tkoi8-r|-Tutf8|-Tcp1047 is supported. +# $FreeBSD$ + +# Default device. +case "${LC_ALL-${LC_CTYPE-${LANG}}}" in + *.UTF-8) + T=utf8 ;; + iso_8859_1 | *.ISO*8859-1 | *.ISO*8859-15) + T=latin1 ;; + *.IBM-1047) + T=cp1047 ;; + *.KOI8-R) + T=koi8-r ;; + *) + T=ascii ;; +esac : ${GROFF_BIN_PATH=@BINDIR@} PATH=$GROFF_BIN_PATH@SEP@$PATH export PATH -exec @g@eqn -Tascii ${1+"$@"} +exec @g@eqn -T${T} ${1+"$@"} # eof |