mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-29 06:47:21 +01:00
dfb33229a0
PR: 4290 Submitted by: "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
21 lines
448 B
Bash
21 lines
448 B
Bash
#!/bin/sh
|
|
# Provision of this shell script should not be taken to imply that use of
|
|
# GNU eqn with groff -Tascii|-Tlatin1 is supported.
|
|
|
|
# Default device.
|
|
if test `expr "$LC_CTYPE" : ".*\.ISO_8859-1"` -gt 0 || \
|
|
test `expr "$LANG" : ".*\.ISO_8859-1"` -gt 0
|
|
then
|
|
T=-Tlatin1
|
|
else
|
|
if test `expr "$LC_CTYPE" : ".*\.KOI8-R"` -gt 0 || \
|
|
test `expr "$LANG" : ".*\.KOI8-R"` -gt 0
|
|
then
|
|
T=-Tkoi8-r
|
|
else
|
|
T=-Tascii
|
|
fi
|
|
fi
|
|
|
|
exec @g@eqn -T${T} ${1+"$@"}
|