aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-09-04 21:13:43 -0700
committerCollin Funk <collin.funk1@gmail.com>2025-09-04 21:18:51 -0700
commit0114629e0c73b6530f551b645097ff93e4663806 (patch)
treeeb1e9a30a16a24e50700803ad495433ae777bc02
parenttests: fold: check if multi-byte spaces are treated as blank (diff)
downloadcoreutils-0114629e0c73b6530f551b645097ff93e4663806.tar.gz
coreutils-0114629e0c73b6530f551b645097ff93e4663806.zip
maint: prefer c32isspace to iswspace
* src/wc.c (wc): Replace call to iswspace with c32isspace.
-rw-r--r--src/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wc.c b/src/wc.c
index 214637dcf..268b947bb 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -523,7 +523,7 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
if (width > 0)
linepos += width;
}
- in_word2 = (! iswspace (wide_char)
+ in_word2 = (! c32isspace (wide_char)
&& ! maybe_c32isnbspace (wide_char));
}