Tests: fix randstring() with BSD `tr`
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 13 Nov 2020 23:19:31 +0000 (18:19 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 28 Oct 2022 20:26:37 +0000 (16:26 -0400)
commiteb9605eaf65c0c4858511a10e6ae6398cc2dc1c8
tree3cb1b5213bf344d6b386a1ad1bc8b178ec7d48e1
parentfbf606d77e98bd46d953a40331f039730cfdf532
Tests: fix randstring() with BSD `tr`

On FreeBSD, `tr` will error out with an "Illegal byte sequence"
error when it is provided with an invalid multi-byte character.
This happens regularly when its input is random.

Forcing `tr` to use the 'C' locale works around this problem as
that locale only allows single-byte characters.

Change-Id: I8d8e84fb7f356205dd45479538e5bc0bff3c1668
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh
This page took 0.02548 seconds and 4 git commands to generate.