From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18861 invoked by alias); 29 Oct 2015 16:26:28 -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: 37017 Received: (qmail 857 invoked from network); 29 Oct 2015 16:26: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-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Bug: bracketed-paste-magic + ztcp causes wrong pasted contents for CJK payloads From: "Jun T." In-Reply-To: <20151029145143.6b3830a7@pwslap01u.europe.root.pri> Date: Fri, 30 Oct 2015 01:25:49 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <0D7C93CF-C84C-43BF-B7ED-4A868F04D401@kba.biglobe.ne.jp> References: <151015172503.ZM30721@torch.brasslantern.com> <151027194317.ZM17099@torch.brasslantern.com> <151027202340.ZM17146@torch.brasslantern.com> <20151028093504.756c22b1@pwslap01u.europe.root.pri> <151028100744.ZM18361@torch.brasslantern.com> <20151028174448.70594180@pwslap01u.europe.root.pri> <151028163814.ZM1379@torch.brasslantern.com> <20151029093131.49241bde@pwslap01u.europe.root.pri> <20151029145143.6b3830a7@pwslap01u.europe.root.pri> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 59365 2015/10/29 23:51, Peter Stephenson wrote: > @@ -3007,6 +3032,10 @@ setnparam(char *s, mnumber val) >=20 > DPUTS(!v, "BUG: value not found for new parameter"); > + if (!was_unset && isset(WARNCREATEGLOBAL) && locallevel > 0 && > + v->pm->level =3D=3D 0) > + zwarn("numeric parameter %s created globally in function", > + v->pm->node.nam); E01options.ztst also need be updated; otherwise it fails as follows: *** /tmp/zsh.ztst.err.65239 Fri Oct 30 00:54:52 2015 --- /tmp/zsh.ztst.terr.65239 Fri Oct 30 00:54:52 2015 *************** *** 1,3 **** --- 1,4 ---- fn:3: scalar parameter foo1 created globally in function fn:5: scalar parameter foo1 created globally in function fn:15: math parameter foo5 created globally in function fn + fn:15: numeric parameter foo5 created globally in function Test ./E01options.ztst failed: error output differs from expected as = shown above for: fn() { emulate -L zsh setopt warncreateglobal (snip) } fn Was testing: WARN_CREATE_GLOBAL option