* 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
if (width > 0)
linepos += width;
}
- in_word2 = !iswnbspace (wide_char);
+ in_word2 = ! iswspace (wide_char)
+ && ! iswnbspace (wide_char);
}
/* Count words by counting word starts, i.e., each
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