Re: utf8, macos x, and fmt

Bengt Kleberg <[email protected]>
Newsgroups gmane.editors.wily
Message-ID <[email protected]>
> Delivered-To: [email protected]
> To: [email protected]
> From: MJ Ray <[email protected]>

> John Lamoreaux <[email protected]> wrote:
> > characters seem simply to be dropped.  Does anyone have an idea where a 
> > UTF8-enabled version of fmt might be found?  (As I'm not much of a 
> 
> I think GNU textutils will "do the right thing" and can be found via
> http://www.gnu.org/software/textutils/textutils.html but ICBW.

gnu textutils fmt (and indeed solaris fmt) does ''the almost right
thing'' (imho it is not correct) for utf8. they do not drop utf8
characters (good), but count them as >1 character (bad).

ie, given 12 groups of 3 utf8 characters (one whitespace between each
group) fmt will put them on 2 lines with 10 groups on the first line.
default fmt line length is 72 characters.

i have a limbo fmt program that works fine. anybody that has a unix c
program? presumably written towards 9libs...


bengt
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.