From: Collin Funk Date: Sat, 29 Nov 2025 05:28:21 +0000 (-0800) Subject: tests: tac: test --separator with invalid UTF-8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1d311e7a244b908833fdae2f84fb5a613c055c7;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/tac/tac-locale.sh b/tests/tac/tac-locale.sh index 2bb6e404c2..f6383c2daa 100755 --- a/tests/tac/tac-locale.sh +++ b/tests/tac/tac-locale.sh @@ -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