summaryrefslogtreecommitdiffstats
path: root/src/join.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2026-03-09 22:23:12 +0000
committerPádraig Brady <P@draigBrady.com>2026-03-10 16:30:52 +0000
commit5ca27c1929d41bee3740add87cce459fb969ef97 (patch)
treec2332ae50e5ac9b0b031422f38d64831c8a038e8 /src/join.c
parent3ef107fa1296b7d32182a4a3b36767ea963a1450 (diff)
downloadcoreutils-5ca27c1929d41bee3740add87cce459fb969ef97.tar.gz
coreutils-5ca27c1929d41bee3740add87cce459fb969ef97.zip
all: use more consistent blank character determination
* src/system.h (c32issep): A new function that is essentially iswblank() on GLIBC platforms, and iswspace() with exceptions elsewhere. * src/expand.c: Use it instead of c32isblank(). * src/fold.c: Likewise. * src/join.c: Likewise. * src/numfmt.c: Likewise. * src/unexpand.c: Likewise. * src/uniq.c: Likewise. * NEWS: Mention the improvement.
Diffstat (limited to 'src/join.c')
-rw-r--r--src/join.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/join.c b/src/join.c
index 883a42005..4346758a6 100644
--- a/src/join.c
+++ b/src/join.c
@@ -308,7 +308,7 @@ eq_tab (mcel_t g)
static bool
newline_or_blank (mcel_t g)
{
- return g.ch == '\n' || c32isblank (g.ch);
+ return g.ch == '\n' || c32issep (g.ch);
}
/* Fill in the 'fields' structure in LINE. */
@@ -918,7 +918,7 @@ decode_field_spec (char const *s, int *file_index, idx_t *field_index)
static bool
comma_or_blank (mcel_t g)
{
- return g.ch == ',' || c32isblank (g.ch);
+ return g.ch == ',' || c32issep (g.ch);
}
/* Add the comma or blank separated field spec(s) in STR to 'outlist'. */