From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20885 invoked by alias); 15 Oct 2015 13:54:39 -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: 36866 Received: (qmail 11022 invoked from network); 15 Oct 2015 13:54:38 -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,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Md4HEGiGYEvvK9AdMF5ug8fAeZ1+9l3cwqaUM3tsZi4=; b=0NYggA5MmQOFXeFEgHTw6pLho49OV15BBHALcT8eQ7TtFkvG63MUvGvpzLiuNSeN3+ N+Ahc35my3rwWA3lFCR0bDbdrL16IUu6pfJ0GyImq5OqrlMqTT2FBpZ39aDDoDK5FsUb 2jybugGdA6cTdcjvziA7XPYHhAIOhpXrh2M5mbv+2feEbhkbQ8rFTvzcNl3Vw9xTNqp9 ZWOguMrupyplBDFxlgCicCTJcjQPyDYLqgVm64xGt5M1onSZKeV4Fi3TvFrWewXIsc07 pZcg0wKhbdqHuYa6uqIo6o4KrqW09C+BBqVALL0KzCeFLnE6dMm7s2qvOiqHLQDYdcua viSg== MIME-Version: 1.0 X-Received: by 10.129.154.141 with SMTP id r135mr6452216ywg.195.1444917276375; Thu, 15 Oct 2015 06:54:36 -0700 (PDT) Date: Thu, 15 Oct 2015 21:54:36 +0800 Message-ID: Subject: Bug: bracketed-paste-magic + ztcp causes wrong pasted contents for CJK payloads From: Chi Hsuan Yen To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=94eb2c0bb534fd05c1052225049c --94eb2c0bb534fd05c1052225049c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear Zsh developers: This bug is similar to zsh-worker 36763 but different. With zsh commit 827d360, I have no problems in pasting CJK payloads with an empty ~/.zshrc, while problems occur with my own ~/.zshrc. It's a strange bug. Please tell me if you can't reproduce it. I'll test on more platforms. Environment: OS: Arch Linux x86_64 Compiler: gcc-multilib 5.2.0-2 Shell: zsh-git 5.1.1.r91.g827d360-1 This is built using the build script at [1]. Options given to ./configure can be found there I've also installed openbsd-netcat 1.105_7-7 for testing purpose The minimal ~/.zshrc causing this bug: autoload -Uz bracketed-paste-magic zle -N bracketed-paste bracketed-paste-magic zmodload zsh/net/tcp ztcp localhost 12345 Steps to reproduce: 1. Install the packages mentioned above 2. Run 'nc -l 12345' 3. Copy "=E4=B8=AD=E6=96=87" in X11 I copied them from my browser, Firefox 4. Paste it in the terminal I'm using xfce4-terminal. Ctrl+Shift+V does the trick. Expected result: "=E4=B8=AD=E6=96=87" is pasted Actual result: "df" is pasted Notes: 1. If there's nothing listening at port 12345, ztcp fails as expected and pasting CJK payloads works 2. Whether it's helpful or not, "=E4=B8=AD=E6=96=87" in UTF-8 is \xe4\xb8\x= ad\xe6\x96\x87 Best Regards, Yen Chi Hsuan [1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=3Dzsh-git --94eb2c0bb534fd05c1052225049c--