Jim Meyering wrote:
> 涂青 wrote:
>> Dear bug-coreutils:
>> cut (GNU coreutils) 7.6 can not work well in multi-bytes text
> ...
>> [r...@smsap 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.


Reply via email to