summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2025-04-04 11:53:10 +0100
committerPádraig Brady <P@draigBrady.com>2025-04-04 12:00:24 +0100
commit9ed5770b5e86bd765c607bc9375f0db78acf4687 (patch)
tree011fd22da57a3a7918ea7a9a35dba0ec03c6a860
parentls: suppress ENOENT errors when reading ACL info (diff)
downloadcoreutils-9ed5770b5e86bd765c607bc9375f0db78acf4687.tar.gz
coreutils-9ed5770b5e86bd765c607bc9375f0db78acf4687.zip
tests: fix false failure with multi-byte thousands separators
* tests/sort/sort-h-thousands-sep.sh: sv_SE defaults to UTF-8 on macOS 18, so avoid the test for multi-byte separators. Fixes https://bugs.gnu.org/77509
-rwxr-xr-xtests/sort/sort-h-thousands-sep.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sort/sort-h-thousands-sep.sh b/tests/sort/sort-h-thousands-sep.sh
index 4be960394..11d1cc475 100755
--- a/tests/sort/sort-h-thousands-sep.sh
+++ b/tests/sort/sort-h-thousands-sep.sh
@@ -25,6 +25,9 @@ lg="$(LC_ALL="$TEST_LOCALE" locale thousands_sep)"
test "$lg" ||
skip_ 'The Swedish locale with blank thousands separator is unavailable.'
+test $(printf '%s' "$lg" | wc -c) = 1 ||
+ skip_ 'Multi-byte thousands separators are not supported'
+
tee exp1 exp3 > in << _EOF_
1 1k 1 M 4${lg}003 1M
2k 2M 2 k 4${lg}002 2