zsh-workers
 help / color / mirror / code / Atom feed
* Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1
@ 2015-09-06 15:57 Axel Beckert
  2015-09-10 11:17 ` Axel Beckert
  2015-09-10 14:39 ` Bart Schaefer
  0 siblings, 2 replies; 23+ messages in thread
From: Axel Beckert @ 2015-09-06 15:57 UTC (permalink / raw)
  To: zsh-workers

Hi,

while trying to paste a git commit message after 'git commit -m "'
using a middle click of my mouse into an uxterm, nothing happened
anymore afterwards. The pasted text didn't display and nothing of what
I typed showed up anymore...

Until I pressed Ctrl-C. Then the text appeared without the prepended
'git commit -m "' on the commandline, plus a new prompt.

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 "ä" 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.

The minimal way to reproduce seems the following:

Start a "zsh -f" in an uxterm. Any other UTF-8 capable terminal likely
does it, too. Run the following two commands:

autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic

Then type "echo ", but don't press enter. Copy an UTF-8 "ä" from
somewhere else with the mouse and paste it after "echo ".

Nothing will happen. Type a few words. Nothing will happen either.

Then press Ctrl-C. The UTF-8 character and the typed words will appear
where the "echo " had been before and you will be back at a new,
emptied prompt.

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@deuxchevaux.org  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2015-09-11 21:53 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-06 15:57 Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1 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

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).