GNU bug report logs - #54124
fmt inserts garbage in certain cases?

Previous Next

Package: coreutils;

Reported by: "JD" <john1doe <at> ya.ru>

Date: Wed, 23 Feb 2022 11:28:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "JD" <john1doe <at> ya.ru>
To: <bug-coreutils <at> gnu.org>
Subject: fmt inserts garbage in certain cases?
Date: Wed, 23 Feb 2022 12:58:54 +0200
Hi!

I have fmt from coreutils 8.32.1 installed via MacPorts.

If I run the following command: `echo х х х х х х х х х х х х х х х х х х х х х х х х х х | gfmt -sw 10` (which is just echoing 26 Cyrillic 'х' ('kha') letters), I get the following results:

https://i.imgur.com/yRx7uuz.png (iTerm2) 
https://i.imgur.com/7oQ0UPz.png (iTerm2 if passed via `more`) 
https://i.imgur.com/UlLrEMy.png (Alacritty)

And if I delete just two 'х' letters, like this: `echo х х х х х х х х х х х х х х х х х х х х х х х х | gfmt -sw 10`, evertyhitng shows just fine: https://i.imgur.com/DwuWxyx.png

Would be grateful for any advice :)



-- 
JD




This bug report was last modified 3 years and 119 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.