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.
This commit is contained in:
Pádraig Brady committed 2026-03-10 16:30:52 +00:00
1 parent 3ef107fa12
commit 5ca27c1929
8 files changed
+35 -10

No files matched your search

+2 -2
View File
@@ -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'. */