summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/wc/wc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/regress/usr.bin/wc/wc.sh b/regress/usr.bin/wc/wc.sh
index 87b7b8638be..1e52c33d73a 100644
--- a/regress/usr.bin/wc/wc.sh
+++ b/regress/usr.bin/wc/wc.sh
@@ -56,6 +56,9 @@ test_wc()
# single byte characters
test_wc "two lines\nand five words\n" " 2 5 25"
+# non-printable characters
+test_wc "a\033b\000c\n" " 1 1 6"
+
# multibyte characters
test_wc "ax\0314\0200b\n" " 1 1 5" " 1 1 6"
test_wc "a\0354\0277\0277b\n" " 1 1 4" \