Commit 1e539da
committed
ls: honor LC_NUMERIC for the -h decimal separator
ls -lh (and -h) rendered the fractional size with a period regardless of
LC_NUMERIC, so under e.g. fr_FR.UTF-8 it printed "8.4K" where GNU prints
"8,4K". ls already formats sizes through uucore's human_readable, which
localizes the separator, but the ls crate did not enable the
`i18n-decimal` uucore feature, so the localization compiled out.
Enable it, matching what du does (see #12357). This makes ls -h agree
with sort -h under a comma-decimal locale.
Fixes #142321 parent 212798d commit 1e539da
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7734 | 7734 | | |
7735 | 7735 | | |
7736 | 7736 | | |
| 7737 | + | |
| 7738 | + | |
| 7739 | + | |
| 7740 | + | |
| 7741 | + | |
| 7742 | + | |
| 7743 | + | |
| 7744 | + | |
| 7745 | + | |
| 7746 | + | |
| 7747 | + | |
| 7748 | + | |
| 7749 | + | |
| 7750 | + | |
| 7751 | + | |
| 7752 | + | |
| 7753 | + | |
| 7754 | + | |
| 7755 | + | |
| 7756 | + | |
| 7757 | + | |
7737 | 7758 | | |
7738 | 7759 | | |
7739 | 7760 | | |
| |||
0 commit comments