]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: cut: add case currently failing for coreutils-i18n patch
authorPádraig Brady <P@draigBrady.com>
Thu, 12 Mar 2026 15:50:04 +0000 (15:50 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 5 Apr 2026 12:15:56 +0000 (13:15 +0100)
* tests/cut/cut.pl: Test for extraneous character output with:
printf 'aéb\n' | cut -s -d 'é' -f1 | od -tx1

tests/cut/cut.pl

index d9dc0fc26bc569dd2ac2a9369af313d4924ba4c3..4c219c92616f850a272ba9d1d7eadd3fdd3b2868 100755 (executable)
@@ -278,6 +278,9 @@ if ($mb_locale ne 'C')
       ['mb-delim-3', '-s', '-d', "\xc3\xa9", '-f2',
        {IN=>"abc\n"}, {OUT=>""},
        {ENV => "LC_ALL=$mb_locale"}],
+      ['mb-delim-4', '-s', '-d', "\xc3\xa9", '-f1',  # bug in coreutils-i18n
+       {IN=>"a\xc3\xa9b\n"}, {OUT=>"a\n"},
+       {ENV => "LC_ALL=$mb_locale"}],
       ['mb-w-delim-1', '-w', '-f2', {IN=>"a\xe2\x80\x83b\n"}, {OUT=>"b\n"},
        {ENV => "LC_ALL=$mb_locale"}],
       ['mb-w-delim-2', '-sw', '-f2', {IN=>"a\xc2\xa0b\n"}, {OUT=>""},