coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests: add fold(1) test for --bytes option


From: Pádraig Brady
Subject: Re: [PATCH] tests: add fold(1) test for --bytes option
Date: Sun, 29 Sep 2024 23:43:00 +0100
User-agent: Mozilla Thunderbird Beta

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]