diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1999-07-30 16:34:06 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1999-07-30 16:34:06 +0000 |
commit | 199f4ec6acbbc80cfa46a94e51fa82f16f39680f (patch) | |
tree | 627581c0e0a53630cef5a9a5c63b9460e4478a7e /contrib/groff | |
parent | 0f8db20beb3587d3f084b3d9fcd9cf0b9cc2e4c0 (diff) | |
download | src-199f4ec6acbbc80cfa46a94e51fa82f16f39680f.tar.gz src-199f4ec6acbbc80cfa46a94e51fa82f16f39680f.zip |
Sense $LANG only if $LC_CTYPE is not set
Notes
Notes:
svn path=/head/; revision=49287
Diffstat (limited to 'contrib/groff')
-rw-r--r-- | contrib/groff/eqn/neqn.sh | 7 | ||||
-rwxr-xr-x | contrib/groff/nroff/nroff.sh | 7 | ||||
-rw-r--r-- | contrib/groff/src/preproc/eqn/neqn.sh | 7 | ||||
-rwxr-xr-x | contrib/groff/src/roff/nroff/nroff.sh | 7 |
4 files changed, 12 insertions, 16 deletions
diff --git a/contrib/groff/eqn/neqn.sh b/contrib/groff/eqn/neqn.sh index e10891eb2e6b..f33b68e3b350 100644 --- a/contrib/groff/eqn/neqn.sh +++ b/contrib/groff/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/nroff/nroff.sh b/contrib/groff/nroff/nroff.sh index 25d9db268824..2515968b1d2e 100755 --- a/contrib/groff/nroff/nroff.sh +++ b/contrib/groff/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 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 diff --git a/contrib/groff/src/roff/nroff/nroff.sh b/contrib/groff/src/roff/nroff/nroff.sh index 25d9db268824..2515968b1d2e 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 |