Sense $LANG only if $LC_CTYPE is not set

This commit is contained in:
Andrey A. Chernov 1999-07-30 16:34:06 +00:00
parent 0f8db20beb
commit 199f4ec6ac
4 changed files with 12 additions and 16 deletions

View File

@ -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

View File

@ -3,13 +3,12 @@
prog="$0"
# 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=-Tlatin1
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=-Tkoi8-r
else

View File

@ -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

View File

@ -3,13 +3,12 @@
prog="$0"
# 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=-Tlatin1
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=-Tkoi8-r
else