From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@zsh.org
Subject: Re: Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1
Date: Thu, 10 Sep 2015 20:53:07 +0100 [thread overview]
Message-ID: <20150910205307.4d3c8931@ntlworld.com> (raw)
In-Reply-To: <150910122953.ZM3829@torch.brasslantern.com>
On Thu, 10 Sep 2015 12:29:53 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> Oh, but "read -k" is always going to read from the terminal? It does
> not use the "zle -U" pushback? In which case we'd have to loop on
> "zle .read-command", even with the [[:INCOMPLETE:]] pattern.
>
> Urk. I think read-command is going to have to know multibyte ...?
I don't think that's a problem. The whole shell is built around the
requirement that multibyte characters are an 8-bit extension of ASCII,
else it would need rewriting from the ground up. So, even if it's not
UTF-8, the chraracter set needs to have the property that bytes in a
multibyte character are not ASCII characters, or to put it another way
every byte is equivalent as far as .read-command is concerned. So I
think the code I posted using [[:INCOMPLETE:]] should be the core of a
reasonable solution.
Note that if we do upgrade read-command, it's future proof, since then
we never get something starting with [[:INCOMPLETE:]] (though it may in
principle start with [[:INVALID;]]).
pws
prev parent reply other threads:[~2015-09-10 19:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-06 15:57 Axel Beckert
2015-09-10 11:17 ` Axel Beckert
2015-09-10 15:26 ` Yuri D'Elia
2015-09-10 14:39 ` Bart Schaefer
2015-09-10 14:57 ` Axel Beckert
2015-09-10 15:45 ` Bart Schaefer
2015-09-10 16:07 ` Peter Stephenson
2015-09-10 16:16 ` Bart Schaefer
2015-09-10 16:28 ` Peter Stephenson
2015-09-10 18:57 ` Peter Stephenson
2015-09-10 19:35 ` Peter Stephenson
2015-09-10 23:24 ` Bart Schaefer
2015-09-11 8:10 ` Peter Stephenson
2015-09-11 9:42 ` Axel Beckert
2015-09-11 15:33 ` Bart Schaefer
2015-09-11 17:41 ` Peter Stephenson
2015-09-11 19:22 ` Bart Schaefer
2015-09-11 19:49 ` Axel Beckert
2015-09-11 20:04 ` Axel Beckert
2015-09-11 21:53 ` Daniel Shahaf
2015-09-10 19:20 ` Bart Schaefer
2015-09-10 19:29 ` Bart Schaefer
2015-09-10 19:53 ` Peter Stephenson [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=20150910205307.4d3c8931@ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).