From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: Re: getquery() acts funny with multibyte characters
Date: Tue, 1 Jul 2008 19:18:41 +0200 [thread overview]
Message-ID: <237967ef0807011018v3d53026brdcc5bda89e09fd5b@mail.gmail.com> (raw)
In-Reply-To: <20080630224654.16b9754e@pws-pc>
2008/6/30 Peter Stephenson <p.w.stephenson@ntlworld.com>:
> On Thu, 26 Jun 2008 11:45:02 +0200
> "Mikael Magnusson" <mikachu@gmail.com> 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
prev parent reply other threads:[~2008-07-01 17:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 9:45 Mikael Magnusson
2008-06-26 17:01 ` Mikael Magnusson
2008-06-30 21:46 ` Peter Stephenson
2008-07-01 17:18 ` Mikael Magnusson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=237967ef0807011018v3d53026brdcc5bda89e09fd5b@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).