]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: cut: add a test for divergence from i18n patch
authorPádraig Brady <P@draigBrady.com>
Thu, 12 Mar 2026 16:09:39 +0000 (16:09 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 5 Apr 2026 12:15:56 +0000 (13:15 +0100)
* tests/cut/cut.pl: We don't fall back to byte mode
upon invalid uni-byte delimiter.

tests/cut/cut.pl

index 4c219c92616f850a272ba9d1d7eadd3fdd3b2868..c768124305fa68ec14fc3fae5238387cdde63cfa 100755 (executable)
@@ -281,6 +281,9 @@ if ($mb_locale ne 'C')
       ['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-delim-5', '-d', "\xa9", '-f2',  # Different from coreutils-i18n
+       {IN=>"A\xc3\xa9B\xa9C\n"}, {OUT=>"C\n"},  # (we don't split valid chars)
+       {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=>""},