On 03/04/2025 22:38, Derek Clegg via GNU coreutils Bug Reports wrote:
“make check” failure:

============================================================================
Testsuite summary for GNU coreutils 9.6
============================================================================
# TOTAL: 657
# PASS:  483
# SKIP:  173
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./tests/test-suite.log
Please report to bug-coreutils@gnu.org
============================================================================


uname -m = arm64
uname -r = 24.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 24.4.0: Wed Mar 19 21:17:37 PDT 2025; root:xnu\
-11417.101.15~1/RELEASE_ARM64_T6031

locale sv_SE seems to be defaulting to UTF-8 on macOS 18.
sort(1) doesn't support such multi-byte thousands separators,
which the following should avoid.

Marking this as done.

thanks,
Padraig.


commit 9ed5770b5e86bd765c607bc9375f0db78acf4687 (HEAD -> master)
Author: Pádraig Brady <p...@draigbrady.com>
Date:   Fri Apr 4 11:53:10 2025 +0100

    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

diff --git a/tests/sort/sort-h-thousands-sep.sh b/tests/sort/sort-h-thousands-s>
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




Reply via email to