zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Axel Beckert <abe@deuxchevaux.org>, zsh-workers@zsh.org
Subject: Re: Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1
Date: Thu, 10 Sep 2015 07:39:20 -0700	[thread overview]
Message-ID: <150910073920.ZM21998@torch.brasslantern.com> (raw)
In-Reply-To: <20150906155751.GD3721@sym.noone.org>

Hi Axel, I was traveling on all day on Tuesday and have not caught up
on all zsh list mail until today.

On Sep 6,  5:57pm, Axel Beckert wrote:
}
} This does not happen with "zsh -f" and it only happened so far if the
} pasted text contained an UTF-8 character, namely with "..." or "a" so
} far. The position of the UTF-8 character inside the pasted string does
} neither matter (none of the characters in the pasted string will show
} up) nor does matter if I paste into the uxterm with middle click or
} Shift-Ins.
} 
} autoload -Uz bracketed-paste-magic
} zle -N bracketed-paste bracketed-paste-magic

OK, this most likely means that either:

(1) There is a problem handling multibyte characters in the built-in
read-commmand widget; or

(2) There is a problem with using ${PASTED#$KEYS} to remove multi-byte
characters from the beginning of the pasted text.

I'm still dealing with other post-travel stuff so may not get a chance
to look at this today, but perhaps that gives you some ideas.


  parent reply	other threads:[~2015-09-10 14:39 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 [this message]
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

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=150910073920.ZM21998@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=abe@deuxchevaux.org \
    --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).