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-09 22:10:27 +01:00
2025-07-01 23:32:31 +01:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-08-19 11:41:17 -07:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-08-30 12:44:29 +01:00
2025-08-23 18:55:46 +01:00
2025-04-08 16:07:06 +01:00
2025-01-01 09:33:08 +00:00
2025-07-23 07:49:49 -07:00
2025-03-10 12:46:14 +00:00
2025-01-15 17:07:19 +00:00
2025-08-05 18:46:04 -07:00
2025-01-20 15:45:03 +00:00
2025-01-01 09:33:08 +00:00
2025-07-09 17:12:40 -07:00
2025-01-01 09:33:08 +00:00
2025-08-28 18:57:13 -07:00
2025-01-01 09:33:08 +00:00
2025-01-15 22:43:18 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-07-22 21:15:17 +01:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-08-31 19:25:38 +01:00
2025-08-26 16:49:56 +01:00
2025-01-20 15:21:58 +00:00
2025-03-23 12:01:18 -07:00
2025-01-20 15:21:58 +00:00
2025-08-24 11:48:52 +01:00
2025-08-12 17:50:40 +01:00
2025-01-01 09:33:08 +00:00
2025-01-15 17:07:19 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-08-03 10:55:54 -07:00
2025-08-12 17:50:40 +01:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-08-05 18:46:04 -07:00
2025-04-04 21:14:29 +01:00
2025-01-01 09:33:08 +00:00
2025-06-22 17:00:02 +01:00
2025-01-01 09:33:08 +00:00
2025-08-12 17:50:40 +01:00
2025-01-01 09:33:08 +00:00
2025-04-05 11:37:58 +01:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-06-20 12:15:27 -07:00
2025-01-01 09:33:08 +00:00
2025-08-05 18:46:04 -07:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2015-11-06 16:40:42 +00:00
2025-01-01 09:33:08 +00:00
2011-04-13 11:18:48 +01:00
2012-09-14 10:20:03 +02:00
2006-08-16 20:11:42 +00:00
2025-08-26 16:49:56 +01:00
2015-11-10 13:03:33 +00:00
2025-01-01 09:33:08 +00:00
2025-01-01 09:33:08 +00:00
2021-05-12 22:14:11 +01:00