1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-21 06:42:02 +02:00
Files
coreutils/src
Pádraig Brady ebd670e7eb ls: fix alignment with locale formatted --size
Fix allocated size alignment in locales with multi-byte grouping chars.
Tested with: LC_ALL=sv_SE.utf8 ls --size --block-size=\'k

* src/ls.c (print_file_name_and_frills): Don't rely on
printf("%*s", width, string) to pad multi-byte strings appropriately.
Instead work out the padding required and use:
printf("%*s%s", padding, "", string) to pad multi-byte appropriately.
* tests/ls/block-size.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/79347
2025-08-31 19:25:38 +01:00
..
2025-08-22 17:40:30 -07:00
2025-08-12 17:50:40 +01:00
2025-08-12 17:50:40 +01:00
2025-08-27 12:03:46 +01:00
2025-08-22 22:09:50 -07:00
2025-08-12 17:50:40 +01:00