Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mb_metacharlenconv vs. tokens
- X-seq: zsh-workers 22781
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: mb_metacharlenconv vs. tokens
- Date: Wed, 27 Sep 2006 17:51:23 +0100
- In-reply-to: <200609272031.35901.arvidjaar@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200609252146.00249.arvidjaar@xxxxxxxxxx> <200609262203.41210.arvidjaar@xxxxxxxxxx> <200609261810.k8QIAJ7a003189@xxxxxxxxxxxxxx> <200609272031.35901.arvidjaar@xxxxxxxxxx>
Andrey Borzenkov wrote:
> I am afraid that mb_metastrlenconv is rather overloaded. As it looks like
> traversing string character by character is valid operation for input as
> well, so we cannot exclude tokens there.
>
> Let's put it differently - what we intend is to avoid passing bogus character
> to mbrtowc(). If we *know* the context is tokenized we could just as well
> pass a flag to itype_end() and mb_metacharlenconv() so they will check for
> tokens and skip them. Does it actually make sense?
Yes, that makes perfect sense. It's then a case of deciding on the
context, but that's a lot less heavyweight than untokenizing.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author