bug-coreutils
[Top][All Lists]
Advanced

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

fold and multibyte characters


From: Egmont Koblinger
Subject: fold and multibyte characters
Date: Thu, 4 May 2006 22:18:25 +0200
User-agent: Mutt/1.5.8i

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




reply via email to

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