Change #246251
Category | gcoreutils |
Changed by | Pádraig Brady <P | @draigBrady.com>
Changed at | Sat 18 Oct 2025 19:37:10 |
Repository | git://git.savannah.gnu.org/coreutils.git |
Project | gcoreutils |
Branch | master |
Revision | 770078e315232b49c0e113152a469df4df1e5f4d |
Comments
numfmt: fix issues with multi-byte blanks * src/numfmt.c (process_line): Restore byte overwritten with NUL, as it may be part of a multi-byte blank. (process_suffixed_number): Skip multi-byte blanks, and correctly determine width with mbswidth(). (parse_format_string): Use c_isblank() to explicitly indicate that's all the format spec supports. * tests/misc/numfmt.pl: Add test cases. * NEWS: Mention the bug fix.
Changed files
- NEWS
- src/numfmt.c
- tests/misc/numfmt.pl