1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 09:21:58 +02:00

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.
This commit is contained in:
Pádraig Brady
2025-10-18 17:44:49 +01:00
parent e5d7764386
commit 09af58f4f9
4 changed files with 34 additions and 23 deletions

View File

@@ -176,6 +176,7 @@ gnulib_modules="
mbs_endswith
mbschr
mbslen
mbsstr
mbswidth
mbszero
mcel-prefer