Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: getquery() acts funny with multibyte characters
- X-seq: zsh-workers 25260
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: getquery() acts funny with multibyte characters
- Date: Tue, 1 Jul 2008 19:18:41 +0200
- 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=nuTiY10BKa4i3IXbGcO7ClAivqRfNaLokDFPmUrvFaE=; b=Q4pFln9ygwWx/9u0XfuKXwIYaOoUehF9vl9cXrAbz2LhDL2MpBD4614lhIezrDkD0J saI5aoilyiqKyF+nLhNf8iEY/bBkvBl2CvmUQ1JrL0QWvcfmvFfsB10rtFXxxz5tFBR1 c3As0PGtqC8eFjetkmoUlZ7H//ANaGG+hkzwI=
- 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=HCUbVcyd9nIsaID2NhbnXNISUqpVu8jPsQwJ8IMuGmEsYfZWuuDV6pOp85uF7GQ8Ci ApcaaznX8VZnUbMjY/XH3odHVWGscB5yggDyfViT0XBlhjN9tvFhNug3NvZV2HxsNVnC 0EoDPTQD5j82fYdJU7aASkZFmEh3nd9hQn+vs=
- In-reply-to: <20080630224654.16b9754e@pws-pc>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0806260245y7e9d8badif35b2fe7892a45b1@xxxxxxxxxxxxxx> <20080630224654.16b9754e@pws-pc>
2008/6/30 Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>:
> On Thu, 26 Jun 2008 11:45:02 +0200
> "Mikael Magnusson" <mikachu@xxxxxxxxx> wrote:
>> If you misspell a command or run rm * (there are probably other cases
>> too) you get a prompt that asks you for y/n or whatever is applicable.
>> If you write a multibyte character at this prompt, zsh will erase a
>> character of the prompt for every extra byte in the character, ie
>> entering å (U+E5) erases one character and entering は (U+306F) erases
>> two. It seems to happen with unsetopt multibyte too.
>>
>> The function seems to emit "\b \b" to erase what you wrote if it isn't
>> a valid response, which seems a bit strange. Wouldn't it be more sane
>> to turn off echoing and simply print the valid response instead?
>
> This might work, if the mailing list ever shows up.
I'm unsure if you were referring to the mail itself or the patch, but in any
case they both (for #2: appear to) work fine. :)
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author