mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Sense $LANG only if $LC_CTYPE is not set
This commit is contained in:
parent
0f8db20beb
commit
199f4ec6ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49287
@ -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