On 29/03/2026 12:48, Pádraig Brady wrote:
This patch set updates cut(1) to be multi-byte aware.
It is also an attempt to reduce interface divergence across implementations.

I've put the 60 patches here due to the quantity:
https://github.com/pixelb/coreutils/compare/cut-mb
There are a few updates since the last mail.
I've updated the above with the latest version.
It's close to being ready to push now.

The main change is to reinstate responsiveness,
to ensure there is no delay in processing input.

The cause for this was existing in mbbuf,
as it used fread() which internally repeats read()
until its buffer is filled.
I switched to using read() directly, which fixes the issue.

Note this also fixes responsiveness of fold(1),
and I've added an associated NEWS entry in the patch set.

Since responsiveness is an important attribute
(for interactive or stdbuf -oL use etc.),
I intend to add some general tests for this
for various utils in a tests/misc/responsiveness.sh test.

cheers,
Padraig

Reply via email to