aboutsummaryrefslogtreecommitdiff
path: root/contrib/groff/src/preproc/eqn
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/src/preproc/eqn')
-rw-r--r--contrib/groff/src/preproc/eqn/neqn.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/groff/src/preproc/eqn/neqn.sh b/contrib/groff/src/preproc/eqn/neqn.sh
index e10891eb2e6b..f33b68e3b350 100644
--- a/contrib/groff/src/preproc/eqn/neqn.sh
+++ b/contrib/groff/src/preproc/eqn/neqn.sh
@@ -3,13 +3,12 @@
# 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
+locale=${LC_CTYPE:-$LANG}
+if test `expr "$locale" : ".*\.ISO_8859-1"` -gt 0
then
T=latin1
else
-if test `expr "$LC_CTYPE" : ".*\.KOI8-R"` -gt 0 || \
- test `expr "$LANG" : ".*\.KOI8-R"` -gt 0
+if test `expr "$locale" : ".*\.KOI8-R"` -gt 0
then
T=koi8-r
else