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

James Cloos <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
>>>>> "BH" == Bruno Haible via GNU coreutils Bug Reports <[email protected]> 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 <[email protected]>
            OpenPGP: https://jhcloos.com/0x997A9F17ED7DAEA6.asc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.