Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: various weirdnesses with unicode support
- X-seq: zsh-workers 21715
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: various weirdnesses with unicode support
- Date: Fri, 9 Sep 2005 14:33:09 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SD1sfua91qfWL2W5n2N11kKLaBRfxkJQCYGbvpxxOuDImxBtRdqGY+wS4bTQ/Konw/1z4fJUcMqm1Gzdfy11WWM7kr7rYjfssD37dnfBCZGdY9jx4MB9PyogErfnyL6ZevSRIHrrxpPuZWS1cclf7VzBQmq/DdT+w0y/f1P/Ve8=
- In-reply-to: <20050909125341.12a21423.pws@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef05090713304637c1f1@xxxxxxxxxxxxxx> <20050908085533.GA2463@fargo> <200509081002.j88A215f024377@xxxxxxxxxxxxxx> <20050908113246.52522e05.pws@xxxxxxx> <237967ef0509080731646f7306@xxxxxxxxxxxxxx> <20050909125341.12a21423.pws@xxxxxxx>
- Reply-to: mikachu@xxxxxxxxx
On 9/9/05, Peter Stephenson <pws@xxxxxxx> wrote:
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> > It seems to help a bit. If i press å (a with a ring), and then press a
> > a few times, zle still seems to be in a mostly normal state. But if i
> > press several å in a row i can't seem to get out.
>
> I've checked this in anyway, with some slight tweaks: the MB state is
> also reset if getrestchar() returns EOF, and I've added zle documentation
> indicating that $KEYTIMEOUT is applied to multibyte characters.
>
> I won't be much use with debugging this since I have currently no way
> of generating invalid characters. X Windows is smart enough to convert
> between windows. There may be some way of confusing it with the locale
> or character set.
You can try stuff like echo `echo åäö or other characters | iconv -f
UTF-8 -t ISO-8859-1`<tab>
It will just expand to an empty string in the command line, but the
completion listing does show the å (rxvt-unicode shows invalid
characters as latin-1 which is not really the right thing to do but
still more helpful than a box).
As for confusing zsh with keyboard input, just running a terminal in
some iso-8859 mode and running export LC_CTYPE=xx_XX.UTF-8 should be
enough to trigger the thing i talked about, since zsh then expects the
input to be UTF-8.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author