From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6022 invoked by alias); 10 Sep 2015 16:16:53 -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: 36476 Received: (qmail 3615 invoked from network); 10 Sep 2015 16:16:53 -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=2nDENr67NcI3xpwZcgzM8tCGPHfnp2KzYw7dTTQKnuw=; b=APeIrU1g23HjxblNMDX2qEC0G2+IAd4bBow9BV8uGRfnfDGqnT2csZkoryRX4/dXAQ rzPd8cYgTghbIA+Gl8XCC8x5nhT59KssZLwdLcSwQfQTwLekUN2ghg8jIMDKckD40+Es p8cIJJsHI2KAebHNQEBZKsG2nHvUFsMjHvaisjNb/xt+8rz7a0tQOlWP/Igb4Ws7buLd jo0HM8e5zCO6IlrbIL7mfwy2M/fD0n7gEdMVVIBNKfuXCfT+r3UhX1UAIic9Iopjw75p ZGNZQE/qlUGi/EB5KJgpVkza0t6PxUzlKvPcKzhLcOKEkBJlG46fG6wro0fXtBgTOKCm j13g== X-Gm-Message-State: ALoCoQnwsbrjIhWSPuqn5a33pxQasYfSAB54b6qpz0Y4v87aGaRFKW3B/xV+49TOkdK5bgEZdTNo X-Received: by 10.60.220.227 with SMTP id pz3mr32770330oec.13.1441901811808; Thu, 10 Sep 2015 09:16:51 -0700 (PDT) From: Bart Schaefer Message-Id: <150910091649.ZM3715@torch.brasslantern.com> Date: Thu, 10 Sep 2015 09:16:49 -0700 In-Reply-To: <20150910170705.0fbeb302@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: Pasting UTF-8 characters with bracketed-paste-magic seems broken in 5.1" (Sep 10, 5:07pm) References: <20150906155751.GD3721@sym.noone.org> <150910073920.ZM21998@torch.brasslantern.com> <20150910145714.GO3721@sym.noone.org> <150910084516.ZM22892@torch.brasslantern.com> <20150910170705.0fbeb302@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: 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 On Sep 10, 5:07pm, Peter Stephenson wrote: } } read-command doesn't explicitly handle multibyte characters in the way } self-insert does. self-insert gets the remainder of the character. Hrm. So the problem is that a multibyte character isn't explicitly bound to self-insert, rather the first byte is bound to self-insert and self-insert knows that when it sees that byte it should read more? Should be possible to handle that in the loop in bracketed-paste-magic with a test of $KEYS and a call to read -k. Might try to get to this later, out of time now ... or someone else can jump in.