Hi,

It seems to me that fold (5.94) doesn't support multibyte locales. I have
LANG=hu_HU.UTF-8, no other LC_ variables set, fully UTF-8 environment. When
I launch "fold -s" to format a UTF-8 encoded text file, it produces lines
much shorter than 80 characters for those lines that have plenty of accented
letters. If I omit the "-s" it even easily breaks a character, places a
newline between its two bytes, which leads to invalid UTF-8 output.

Oh, and by the way it would be cool if fold could automatically find out the
terminal's width if stdout is a terminal.


Thanks,

Egmont


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to