Re: implementation of cut -c

2015-11-23 Thread Ted Unangst
Ingo Schwarze wrote: > > The insight that Ted asked for is that > > * in contrast to the other programs (ls, rs, ul), cut(1) isn't >merely doing the same things with multibyte characters that it >used to do with single byte characters; it grows substantial >new, user-visible

Re: implementation of cut -c

2015-11-23 Thread Ingo Schwarze
Hi Ted, Ingo Schwarze wrote on Sun, Nov 15, 2015 at 06:56:37PM +0100: > Ted Unangst wrote on Sat, Nov 14, 2015 at 01:22:33PM -0500: >> One other program which I think will provide some insight is cut. >> It cares, perhaps even more than others, about bytes and chars >> and bytes in the middle of

implementation of cut -c

2015-11-15 Thread Ingo Schwarze
Hi Ted, Ted Unangst wrote on Sat, Nov 14, 2015 at 01:22:33PM -0500: > One other program which I think will provide some insight is cut. > It cares, perhaps even more than others, about bytes and chars > and bytes in the middle of chars. The following fully implements -c. While here, reduce the