tests: Fix LC_ALL for systems which use .utf8 suffixes
authorPhilip Withnall <withnall@endlessm.com>
Mon, 20 Nov 2017 14:51:04 +0000 (14:51 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 14 Dec 2017 14:18:44 +0000 (14:18 +0000)
commite48a1bcfe7e879479b3b608bd8607cad0dd14149
tree314bc73424f103de103a4763064b51b1ea29dd7c
parent5d1753f59bace948f0763e5de533c22e6ed5304b
tests: Fix LC_ALL for systems which use .utf8 suffixes

libtest-core.sh tries to clear the locale to a UTF-8 supporting C
locale, either by setting it to C.UTF-8 (preferred) or just C.

Some systems, like Fedora 26, use the locale name C.utf8, rather than
C.UTF-8. Support that too.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1347
Approved by: cgwalters
tests/libtest-core.sh