Sense $LANG only if $LC_CTYPE is not set
This commit is contained in:
parent
0f8db20beb
commit
199f4ec6ac
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user