Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unicode problem
- X-seq: zsh-workers 24425
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Unicode problem
- Date: Tue, 22 Jan 2008 02:09:03 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=gocqXs42RvR1Cu+icAR3xZIimHnEHOepg+epgkklHb4=; b=eRjuQRDF7hRibvMnocYO1tc3Gzdvle7C47PQofcYv6PERjZQmihPk+03tdRErFHh0MvrvKbLOfiwc1u3fSqiq93SlHRtwCqjPLEbLre53/O1BiXtIMTfuqX1mjHzsDsac0l7e1lgYB0yjgqPIXNRBZkJJ+qPDGLwULzkUQObESk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=irYOrWc3yPs5XtKOttG1JJyWLRcZDvPAioeAOi/nnAHG+zt3PsKJoFnsEQQ7w007OE9KzDmM8maV8s+05NoeuYI63BMRLkZLDNBeXTJmUvksSKIWqk+P5V36NlHO/lZKNjHq5sO8/1WrTbAlftn2SEd4181RtuI8iIKdoaChZ3Y=
- In-reply-to: <200801211445.m0LEjLS7029582@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <slrnfouc3r.6ea.joerg@xxxxxxxxxxxx> <20080117120932.4458d35a@news01> <slrnfp97q5.dvv.joerg@xxxxxxxxxxxx> <200801211415.m0LEFbbU017355@xxxxxxxxxxxxxx> <237967ef0801210629t201392a6h4d28fe80fcb5ab44@xxxxxxxxxxxxxx> <200801211445.m0LEjLS7029582@xxxxxxxxxxxxxx>
On 21/01/2008, Peter Stephenson <pws@xxxxxxx> wrote:
> "Mikael Magnusson" wrote:
> > Combining characters combine with the character(s) that come before
> > them.
>
> Combining characters are definitely broken at that moment: that looks
> like a significant chunk of work (and what you say is already more than
> what I know about the subject).
>
> It looks like I was wrong: wcwidth() *is* returning zero for the
> zero-width-space character, but the refresh code is written so that that
> works the same way as width 1, so there is a fundamental problem here.
> We could do a nasty hack so that characters whose width is zero are
> treated the same way as non-printable characters, I suppose.
I don't know if this is at all helpful and everyone probably tried it
already, but all the chars Jörg posted work fine in bash (readline).
Cursoring and backspacing over a char that has combining chars on it
skips over / deletes both of them together, and it gets cursor
movement right as far as I can tell.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author