diff options
| author | Aearil <aearil@paranoici.org> | 2024-02-24 21:44:24 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2024-02-26 17:33:02 +0000 |
| commit | feda512e97ab988ba866aa82895e6647cb68917e (patch) | |
| tree | b11bb17866d4b5a03bb0869905125ae3ff24681d /tests | |
| parent | cp,mv: add --update=none-fail to fail if existing files (diff) | |
| download | coreutils-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-x | tests/wc/wc-nbsp.sh | 5 |
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 |
