init.sh: run tr in the "C" locale to avoid multibyte interpretation
authorJim Meyering <meyering@redhat.com>
Fri, 9 Apr 2010 18:53:49 +0000 (20:53 +0200)
committerIan Beckwith <ianb@erislabs.net>
Mon, 19 Apr 2010 14:23:17 +0000 (15:23 +0100)
commit1ce7c505610add988b492d32a68ef8b8231327f6
tree80ccc6d9151eea0a28d83402b133dbba35708bfa
parentcdd2e64ef1a705284bad64d49a3967564063f03e
init.sh: run tr in the "C" locale to avoid multibyte interpretation

* tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
not try to interpret its random input bytes.  Jarno Rajahalme reported
that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence"
on Darwin 10.3.0 with LC_CTYPE=UTF-8.
(mktempd_): Likewise, just in case.
(cherry picked from commit 6b8b58b99d6aaedeed12300cc154af7d3af7b95f)
ChangeLog
tests/init.sh