Subject: bug#7372: fmt and multi-byte encodings

From: Erik Auerswald <[email-masked]>
Date: Fri, 12 Nov 2010 11:00:41 +0100

On Fri, Nov 12, 2010 at 11:13:20AM +0400, Ineiev wrote:
> On 11/11/10, Pádraig Brady <[email-masked]> wrote:
> > We're starting to apply multi-byte support,
> > so hopefully this will be fixed soon.
> 
> Could you provide a link?
> 
> > $ echo "1 2 æ 4 5 6" | fmt -w6
> > 1 2
> > æ 4
> > 5 6
> 
> While should be
> 1 2 æ
> 4 5 6
> 
> > That is with the official fedora
> > version of `fmt`
> 
> I can confirm that fmt from official GNU coreutils-8.6 does the same.

The same with coreutils 6.10 on debian Lenny:

$ echo "1 2 3 4 5 6" | fmt -w6
1 2 3
4 5 6
$ echo "1 2 ü 4 5 6" | fmt -w6
1 2
ü 4
5 6
$ fmt --version
fmt (GNU coreutils) 6.10
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Ross Paterson.
$

(Just as a reference.)

Erik
-- 
But heck, system administration is hard, what's a little more rope?
Here, hold this gun while I position your foot...
                        -- Valerie Aurora