1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-14 03:12:10 +02:00

tests: tac: test --separator with invalid UTF-8

* tests/tac/tac-locale.sh: Test that a string containing invalid UTF-8
characters can be used for --separator.
This commit is contained in:
Collin Funk
2025-11-28 21:28:21 -08:00
parent 90856dd867
commit d1d311e7a2

View File

@@ -38,6 +38,8 @@ export LC_ALL=$LOCALE_FR_UTF8
if test "$(locale charmap 2>/dev/null)" = UTF-8; then
check_separator '\u0434' # д
check_separator '\u0434\u0436' # дж
# invalid UTF8|unpaired surrogate|C1 control|noncharacter
check_separator '\xC3|\xED\xBA\xAD|\u0089|\xED\xA6\xBF\xED\xBF\xBF'
fi
Exit $fail