From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7351 invoked by alias); 10 Sep 2015 14:39:27 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36466 Received: (qmail 3330 invoked from network); 10 Sep 2015 14:39:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=Hs3ZXyoMN54r/3gTTltNt/qmpw08l2cpJ2eRJkomWpI=; b=dsD+ksemqxQhIp9jnvogHRIl+vIUt4Q5mpQHZ1W0ZyOMHVeszBdAnt6iDJpf9glLyB Cd5TCaPwd0QQTthOxVzqkq28h6f9TDGsgY3vO9yDCyjzQbyssHlCGAu9Xr3AKlca056i g14OuSRjuqOqSmEl7CSOPjHZXbpuBJrHPbQ6tUsRP6ZyuP5i84z0c/lfdcEOWXJXKl/a IfhO+YQzkwUXrWBjkoJk+2yCuqydXn6b0ds7byKi26wibYhlEQIlcT4SyHIqGoOQHhjZ d8vSOWIgJKrtTrquMSiOXM7qCV5718OCwTwlGLD2RmDOSeiN/sxp9HfBHfZMdur9rzIb N4yA== X-Gm-Message-State: ALoCoQmXJE4dlIP9T5cuSd3WGquR/WRWe+muMlKsu8cstAKAUqyHc4KFktlqLOjt1cFAgwOmIRbL X-Received: by 10.202.57.8 with SMTP id g8mr31351948oia.19.1441895964367; Thu, 10 Sep 2015 07:39:24 -0700 (PDT) From: Bart Schaefer Message-Id: <150910073920.ZM21998@torch.brasslantern.com> Date: Thu, 10 Sep 2015 07:39:20 -0700 In-Reply-To: <20150906155751.GD3721@sym.noone.org> Comments: In reply to Axel Beckert "Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1" (Sep 6, 5:57pm) References: <20150906155751.GD3721@sym.noone.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Axel Beckert , zsh-workers@zsh.org Subject: Re: Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.