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)
committerJim Meyering <meyering@redhat.com>
Fri, 9 Apr 2010 18:56:46 +0000 (20:56 +0200)
commit6b8b58b99d6aaedeed12300cc154af7d3af7b95f
tree8eb4a85a7f82b2c4057fdc61425286478de53c08
parent38e3c69497f5413d59c4fba50b7a9268b6d5eb84
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.
ChangeLog
tests/init.sh