[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cut (GNU coreutils) 7.6 can not worked in multi-bytes text
From: |
Pádraig Brady |
Subject: |
Re: cut (GNU coreutils) 7.6 can not worked in multi-bytes text |
Date: |
Wed, 28 Oct 2009 12:11:56 +0000 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Jim Meyering wrote:
> 涂青 wrote:
>> Dear bug-coreutils:
>> cut (GNU coreutils) 7.6 can not work well in multi-bytes text
> ...
>> address@hidden smsuser]# echo "中国" | cut -c1-2
>> there is no output here
>
> Thank you for the report.
> That is a known problem.
> Here is the corresponding item from coreutils' TODO file:
>
> Adapt tools like wc, tr, fmt, etc. (most of the textutils) to be
> multibyte aware. The problem is that I want to avoid duplicating
> significant blocks of logic, yet I also want to incur only minimal
> (preferably `no') cost when operating in single-byte mode.
I already replied along those lines,
but perhaps I did privately by mistake.
I also noted that the current cut included with
fedora 11 at least is patched to support the
example presented above.
cheers,
Pádraig.