bug-coreutils
[Top][All Lists]
Advanced

[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: Jim Meyering
Subject: Re: cut (GNU coreutils) 7.6 can not worked in multi-bytes text
Date: Wed, 28 Oct 2009 12:41:50 +0100

涂青 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.




reply via email to

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