]> git.ipfire.org Git - thirdparty/coreutils.git/commit
numfmt: support multi-byte --delimiter
authorPádraig Brady <P@draigBrady.com>
Sat, 18 Oct 2025 16:44:49 +0000 (17:44 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 20 Oct 2025 12:13:24 +0000 (13:13 +0100)
commit09af58f4f96daf9ac469742fb7d061dab55cdf14
tree65f44c5e1b7228878fefaf894ede818168b46a74
parente5d7764386c173a37106002c6bc800866d4125e9
numfmt: support multi-byte --delimiter

* bootstrap.conf: Depend on mbsstr() to robustly search for a
multi-byte delimiter character (string) within a multi-byte string.
* src/numfmt.c (main): Accept a valid multi-byte delimiter character.
(next_field): Adjust delimiter search from single byte
to multi-byte aware.  Use mbsstr to find the first match.
* tests/misc/numfmt.pl: Add test case.
* NEWS: Mention the improvement.
NEWS
bootstrap.conf
src/numfmt.c
tests/misc/numfmt.pl