aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAearil <aearil@paranoici.org>2024-02-24 21:44:24 +0100
committerPádraig Brady <P@draigBrady.com>2024-02-26 17:33:02 +0000
commitfeda512e97ab988ba866aa82895e6647cb68917e (patch)
treeb11bb17866d4b5a03bb0869905125ae3ff24681d /tests
parentcp,mv: add --update=none-fail to fail if existing files (diff)
downloadcoreutils-feda512e97ab988ba866aa82895e6647cb68917e.tar.gz
coreutils-feda512e97ab988ba866aa82895e6647cb68917e.zip
wc: fix -w with breaking space over UCHAR_MAX
* src/wc.c (wc): Fix regression introduced in commit v9.4-48-gf40c6b5cf. * tests/wc/wc-nbsh.sh: Add test cases for "standard" spaces. Fixes https://bugs.gnu.org/69369
Diffstat (limited to 'tests')
-rwxr-xr-xtests/wc/wc-nbsp.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/wc/wc-nbsp.sh b/tests/wc/wc-nbsp.sh
index 371cc8b5b..39a8baccc 100755
--- a/tests/wc/wc-nbsp.sh
+++ b/tests/wc/wc-nbsp.sh
@@ -38,10 +38,15 @@ fi
export LC_ALL=en_US.UTF-8
if test "$(locale charmap 2>/dev/null)" = UTF-8; then
+ #non breaking space class
check_word_sep '\u00A0'
check_word_sep '\u2007'
check_word_sep '\u202F'
check_word_sep '\u2060'
+
+ #sampling of "standard" space class
+ check_word_sep '\u0020'
+ check_word_sep '\u2003'
fi
export LC_ALL=ru_RU.KOI8-R