Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #246248

Category gcoreutils
Changed by Pádraig Brady <Pohnoyoudont@draigBrady.com>
Changed at Fri 17 Oct 2025 18:26:25
Repository git://git.savannah.gnu.org/coreutils.git
Project gcoreutils
Branch master
Revision 8bc11f80a3eff1afec437383a63953e21a2063cd

Comments

numfmt: support reading numbers with NBSP before unit
* src/numfmt.c (simple_strtod_human): Accept (multi-byte)
non-breaking space character between number and unit.
Note we restrict this to a single character between number
and unit, to allow less ambiguous parsing if multiple blanks
are used to delimit fields.
* tests/misc/numfmt.pl: Add test cases.
* doc/coreutils.texi (numfmt invocation): Fix stale description
--delimiter skipping whitespace.
* NEWS: Mention the improvement.

Changed files