Re: [dev] Re: [9base][awk] printf and utf-8

2013-01-22 Thread Chris Down
Whilst we're at it why don't we just always return 0, for better performance... On 22 January 2013 22:08, Sam Watkins wrote: > anyway, I say stick with counting bytes, for better performance! >

Re: [dev] Re: [9base][awk] printf and utf-8

2013-01-22 Thread Noah Birnel
On Wed, Jan 23, 2013 at 01:08:15AM +1100, Sam Watkins wrote: > anyway, I say stick with counting bytes, for better performance! Performance before correctness! Yay!

Re: [dev] Re: [9base][awk] printf and utf-8

2013-01-22 Thread Sam Watkins
On Tue, Jan 22, 2013 at 09:05:11AM +0100, mauro tonon wrote: > 2013/1/22 Peter A. Shevtsov : > > On 22/01/13 at 02:32pm, Peter A. Shevtsov wrote: > > > >> It seems that it counts every cyrillic letter as two, i. e. it ain't count > >> letters > >> (or runes) but bytes. > > > > Indeed, > > > > echo

Re: [dev] Re: [9base][awk] printf and utf-8

2013-01-22 Thread mauro tonon
2013/1/22 Peter A. Shevtsov : > On 22/01/13 at 02:32pm, Peter A. Shevtsov wrote: > >> It seems that it counts every cyrillic letter as two, i. e. it ain't count >> letters >> (or runes) but bytes. > > Indeed, > > echo latin кириллица | /usr/local/plan9/bin/awk '{printf("%d %d\n", > length($1), >