aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-03-02 16:52:14 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-03-02 16:52:14 +0000
commitafcf05e46aacbe58f9fd8338ab6ecf9b7d06d004 (patch)
tree4d1655d724be575f060459c555ab30a5630ec3e9 /contrib
parent7a6be913664526370f69f43e340b7ed33f20ea8f (diff)
downloadsrc-afcf05e46aacbe58f9fd8338ab6ecf9b7d06d004.tar.gz
src-afcf05e46aacbe58f9fd8338ab6ecf9b7d06d004.zip
setlocale(3) has been fixed to match POSIX standard:
LC_ALL takes precedence over other LC_* envariables.
Notes
Notes: svn path=/head/; revision=73349
Diffstat (limited to 'contrib')
-rw-r--r--contrib/groff/eqn/neqn.sh2
-rwxr-xr-xcontrib/groff/mdate.sh2
-rw-r--r--contrib/groff/src/preproc/eqn/neqn.sh2
-rw-r--r--contrib/sendmail/cf/sh/makeinfo.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/contrib/groff/eqn/neqn.sh b/contrib/groff/eqn/neqn.sh
index 1ae98e8fa8b8..49cd70f3e1d4 100644
--- a/contrib/groff/eqn/neqn.sh
+++ b/contrib/groff/eqn/neqn.sh
@@ -4,7 +4,7 @@
# $FreeBSD$
# Default device.
-locale=${LC_CTYPE:-$LANG}
+locale=${LC_ALL:-${LC_CTYPE:-$LANG}}
if test `expr "$locale" : ".*\.ISO_8859-1"` -gt 0
then
T=latin1
diff --git a/contrib/groff/mdate.sh b/contrib/groff/mdate.sh
index b07346ab886e..4d50168ae87f 100755
--- a/contrib/groff/mdate.sh
+++ b/contrib/groff/mdate.sh
@@ -7,7 +7,7 @@
# Don't want foreign dates.
LANGUAGE=
-LC_TIME=C; export LC_TIME
+LC_ALL=C; export LC_ALL
(date;
diff --git a/contrib/groff/src/preproc/eqn/neqn.sh b/contrib/groff/src/preproc/eqn/neqn.sh
index 1ae98e8fa8b8..49cd70f3e1d4 100644
--- a/contrib/groff/src/preproc/eqn/neqn.sh
+++ b/contrib/groff/src/preproc/eqn/neqn.sh
@@ -4,7 +4,7 @@
# $FreeBSD$
# Default device.
-locale=${LC_CTYPE:-$LANG}
+locale=${LC_ALL:-${LC_CTYPE:-$LANG}}
if test `expr "$locale" : ".*\.ISO_8859-1"` -gt 0
then
T=latin1
diff --git a/contrib/sendmail/cf/sh/makeinfo.sh b/contrib/sendmail/cf/sh/makeinfo.sh
index 8fb371c2c66e..e7b0cd101fce 100644
--- a/contrib/sendmail/cf/sh/makeinfo.sh
+++ b/contrib/sendmail/cf/sh/makeinfo.sh
@@ -54,7 +54,7 @@ then
else
host=`uname -n`
fi
-echo '#####' built by $user@$host on `LC_TIME=C date`
+echo '#####' built by $user@$host on `LC_ALL=C LC_TIME=C date`
echo '#####' in `pwd` | sed 's/\/tmp_mnt//'
echo '#####' using $1 as configuration include directory | sed 's/\/tmp_mnt//'
echo "define(\`__HOST__', $host)dnl"