aboutsummaryrefslogtreecommitdiff
path: root/coreutils/wc.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/wc.c')
-rw-r--r--coreutils/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c
index 43e8ed492..08f3c2dc4 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;