bug#47103: numfmt: invalid suffix 'k'

2023-11-25 Thread Sven Köhler
Not only --from=si is broken. Also --to=si is broken: $ numfmt --to=si 3000 3,0K In order to not break backwards compatibility, you probably have to introduce a switch --lowercase-kilo such that --to=si produces proper SI compliant output. Then have --from=si accept both uppercase and lowercas

bug#47103: numfmt: invalid suffix 'k'

2023-11-26 Thread Sven Köhler
So Pádraig's patch does allow for parsing lowercase k, but it does not change numfmt to use lowercase k in its output in si mode. As Pádraig has shown, ls uses lowercase k in --si mode. So it uses lowercase k for 1000. I think that numfmt should behave the same for consistency reasons. Also,