diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-09-30 12:44:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-09-30 12:44:23 +0000 |
commit | 4f8538faf75ed9f162c517a578cbd07c7165d7c0 (patch) | |
tree | 0040da00c46709678ceea46faaf161af377d5880 /regress | |
parent | ba6b42942b5780d02ade53e3fa6f4e3845b20c89 (diff) |
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@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/wc/wc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/usr.bin/wc/wc.sh b/regress/usr.bin/wc/wc.sh index 1e52c33d73a..1cb43ccb5c7 100644 --- a/regress/usr.bin/wc/wc.sh +++ b/regress/usr.bin/wc/wc.sh @@ -65,7 +65,7 @@ test_wc "a\0354\0277\0277b\n" " 1 1 4" \ " 1 1 6" # invalid bytes -test_wc "a\0377\0277c\n" " 1 2 5" " 1 1 5" +test_wc "a\0377\0277c\n" " 1 1 5" # edge cases test_wc "" " 0 0 0" |