History log of /openbsd/regress/usr.bin/wc/wc.sh (Results 1 – 3 of 3)
Revision Date Author Comments
# fdee8386 30-Sep-2018 schwarze <schwarze@openbsd.org>

For -w output in -m mode, tweak the handling of bytes that do not
form valid UTF-8: treat them as "not a whitespace character" and
hence "not a word boundary" in the same way as non-printable
charact

For -w output in -m mode, tweak the handling of bytes that do not
form valid UTF-8: treat them as "not a whitespace character" and
hence "not a word boundary" in the same way as non-printable
characters and NUL bytes.

OK millert@

show more ...


# 44dfd84e 30-Sep-2018 schwarze <schwarze@openbsd.org>

fix the rest of the bug mitigated in the previous commit:
do not embark on an infinite loop
when -m is given and the file contains a NUL character;
OK millert@


# 29874af0 07-Oct-2016 schwarze <schwarze@openbsd.org>

minimal UTF-8 tests for wc(1)