Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: count glyphs in multibyte strings
- X-seq: zsh-workers 27833
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: count glyphs in multibyte strings
- Date: Fri, 26 Mar 2010 09:53:58 +0000
- In-reply-to: <20100326010259.GA68432@xxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <22950.1269552903@pws-pc> <20100326010259.GA68432@xxxxxxxxxxxxxxxxxxxx>
Phil Pennock wrote:
> On 2010-03-25 at 21:35 +0000, Peter Stephenson wrote:
> > I noticed we were missing this capability; not sure how useful it is in
> > practice, but it was straightforward to add.
> >
> > You might want to check my terminology and assumptions about the way
> > Unicode works aren't gibberish.
>
> What about -1 being returned from wcwidth() for non-printable
> characters? Looks like this is an existing issue.
Yes, it would make a mess of the existing code although the new capability
would handle it better. I'm not sure whether the right answer is 1 or 0,
but it's not -1.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author