diff options
author | ache <ache@FreeBSD.org> | 1999-07-30 16:34:06 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-07-30 16:34:06 +0000 |
commit | e72fd6b32f22180779062f24249341b89834296f (patch) | |
tree | df6fe685acb8a97b45b22c29ba417bf819005ea4 /contrib/groff/src | |
parent | 0425b8852b252deb8a658caf3c40fd68ce625996 (diff) | |
download | FreeBSD-src-e72fd6b32f22180779062f24249341b89834296f.zip FreeBSD-src-e72fd6b32f22180779062f24249341b89834296f.tar.gz |
Sense $LANG only if $LC_CTYPE is not set
Diffstat (limited to 'contrib/groff/src')
-rw-r--r-- | contrib/groff/src/preproc/eqn/neqn.sh | 7 | ||||
-rwxr-xr-x | contrib/groff/src/roff/nroff/nroff.sh | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/contrib/groff/src/preproc/eqn/neqn.sh b/contrib/groff/src/preproc/eqn/neqn.sh index e10891e..f33b68e 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 diff --git a/contrib/groff/src/roff/nroff/nroff.sh b/contrib/groff/src/roff/nroff/nroff.sh index 25d9db2..2515968 100755 --- a/contrib/groff/src/roff/nroff/nroff.sh +++ b/contrib/groff/src/roff/nroff/nroff.sh @@ -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 |