summaryrefslogtreecommitdiff
path: root/tests/init.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-04-16 08:47:28 +0200
committerJim Meyering <meyering@redhat.com>2010-04-16 11:03:34 +0200
commit648802169a29ea096d6e9813b043b91af9342f8d (patch)
treec5d765ebcac02207e91c76b60646459d545f7ad6 /tests/init.sh
parent4065b154b0eda7aa100bcd0a905b0f4304fbacfd (diff)
downloaddiffutils-648802169a29ea096d6e9813b043b91af9342f8d.tar.gz
tests: update init.sh from gnulib
* tests/init.sh: Update from gnulib.
Diffstat (limited to 'tests/init.sh')
-rw-r--r--tests/init.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/init.sh b/tests/init.sh
index 3e3ea44..ee9c542 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -259,7 +259,7 @@ rand_bytes_()
if test -r "$dev_rand_"; then
# Note: 256-length($chars_) == 194; 3 copies of $chars_ is 186 + 8 = 194.
dd ibs=$n_ count=1 if=$dev_rand_ 2>/dev/null \
- | tr -c $chars_ 01234567$chars_$chars_$chars_
+ | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_
return
fi
@@ -276,7 +276,7 @@ rand_bytes_()
echo "$data_" \
| dd bs=1 skip=50 count=$n_ 2>/dev/null \
- | tr -c $chars_ 01234567$chars_$chars_$chars_
+ | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_
}
mktempd_()
@@ -306,7 +306,7 @@ mktempd_()
fail=0
# First, try to use mktemp.
- d=`env -u TMPDIR mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \
+ d=`unset TMPDIR; mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \
|| fail=1
# The resulting name must be in the specified directory.