On 29/09/2024 17:18, Bernhard Voelker wrote:
Hi *,
Lukas notified me that the downstream I18N patch messed up functionality in
fold(1) again, this time for 'fold -b'.
Reproducer (with buggy dowstream-fold):
$ LC_ALL=en_US.UTF-8 fold -b -w6 <<< $'1234567890\nabcdefghij\n1234567890'
123456
7890
a
bcdefg
hij
12
345678
90
Instead, it should output the same as in the C locale:
$ LC_ALL=C fold -b -w6 <<< $'1234567890\nabcdefghij\n1234567890'
123456
7890
abcdef
ghij
123456
7890
I'd like to add the attached tests here.
Have a nice day,
Berny
+1
thanks!
Pádraig