summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c
index 43e8ed4..08f3c2d 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -129,7 +129,7 @@ int wc_main(int argc UNUSED_PARAM, char **argv)
--counts[WC_CHARS];
goto DO_EOF; /* Treat an EOF as '\r'. */
}
- if (isprint(c)) {
+ if (isprint_asciionly(c)) {
++linepos;
if (!isspace(c)) {
in_word = 1;