bug-coreutils
[Top][All Lists]
Advanced

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

bug#79497: fmt breaks lines when it does not need to


From: James Cloos
Subject: bug#79497: fmt breaks lines when it does not need to
Date: Tue, 23 Sep 2025 07:12:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

>>>>> "BH" == Bruno Haible via GNU coreutils Bug Reports 
>>>>> <bug-coreutils@gnu.org> writes:

BH> $ fmt -w 12 -g 12 input.txt
BH> Grüß
BH> Gott.

BH> $ fmt -w 13 -g 13 input.txt
BH> Grüß Gott.
BH> Why does it take a width of 13, in order to keep the first two words
BH> on a single line? That line has width 10.

odds are that fmt(1) is counting octets rather that characters.

-JimC
-- 
James Cloos <cloos@jhcloos.com>
            OpenPGP: https://jhcloos.com/0x997A9F17ED7DAEA6.asc





reply via email to

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