]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: mktemp: export LC_ALL
authorCollin Funk <collin.funk1@gmail.com>
Sun, 25 Jan 2026 19:27:00 +0000 (11:27 -0800)
committerPádraig Brady <P@draigBrady.com>
Sun, 25 Jan 2026 21:19:45 +0000 (21:19 +0000)
* tests/mktemp/bad-unicode.sh: Run this test case using multiple
locales.

tests/mktemp/bad-unicode.sh

index 5838d865936c69a50f2f3c296c8ebc23770727b6..c010b6373dfb7a8d64d0f9ad2d8270b9cd1744a1 100755 (executable)
@@ -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