tests: mktemp: export LC_ALL

* tests/mktemp/bad-unicode.sh: Run this test case using multiple
locales.
This commit is contained in:
Collin Funk 2026-01-25 11:27:00 -08:00 committed by Pádraig Brady
parent ca68ab6c8a
commit 9cb06a7d13

View File

@ -24,6 +24,7 @@ echo a > "$(bad_unicode)" \
for loc in C "$LOCALE_FR" "$LOCALE_FR_UTF8"; do
test -z "$loc" && continue
export LC_ALL="$loc"
# Bad Unicode as a suffix.
file1=$(mktemp --tmpdir='.' --suffix=$(bad_unicode)) || fail=1
test -n "$file1" && test -f "$file1" || fail=1