thanks for catching that. my brain's not on today. generally i avoid the mb functions because they rely on locale. of course this doesn't apply on plan 9 and so there's no reason for utf8len.
it looks like mblen is used elsewhere; perhaps this would now be a worthwhile patch. - erik > Plan 9 awk is an APE program, so it uses the unpronounceable ANSI > mbtowc/wctomb functions to deal with UTF. Thus it uses mblen rather > than utflen or utf8len. >