From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Tue, 26 Feb 2008 16:34:38 -0500 To: 9fans@cse.psu.edu Subject: Re: [9fans] awk, not utf aware... In-Reply-To: <62de1c2c6c8cd64152312915825615eb@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 63386a1e-ead3-11e9-9d60-3106f5b1d025 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. >