zsh-workers
 help / color / mirror / code / Atom feed
* Bug: bracketed-paste-magic + ztcp causes wrong pasted contents for CJK payloads
@ 2015-10-15 13:54 Chi Hsuan Yen
  2015-10-15 20:54 ` Bart Schaefer
  0 siblings, 1 reply; 20+ messages in thread
From: Chi Hsuan Yen @ 2015-10-15 13:54 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]

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 "中文" 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:
"中文" 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, "中文" in UTF-8 is \xe4\xb8\xad\xe6\x96\x87

Best Regards,

Yen Chi Hsuan

[1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=zsh-git

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

end of thread, other threads:[~2015-11-03 16:31 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-15 13:54 Bug: bracketed-paste-magic + ztcp causes wrong pasted contents for CJK payloads Chi Hsuan Yen
2015-10-15 20:54 ` Bart Schaefer
2015-10-16  0:25   ` Bart Schaefer
2015-10-16 19:40     ` Chi Hsuan Yen
2015-10-18 15:52       ` Bart Schaefer
2015-10-18 16:19         ` Chi Hsuan Yen
2015-10-28  2:43     ` Bart Schaefer
2015-10-28  3:23       ` Bart Schaefer
2015-10-28  9:35         ` Peter Stephenson
2015-10-28 17:07           ` Bart Schaefer
2015-10-28 17:44             ` Peter Stephenson
2015-10-28 23:38               ` Bart Schaefer
2015-10-29  9:31                 ` Peter Stephenson
2015-10-29 14:51                   ` Peter Stephenson
2015-10-29 15:00                     ` Bart Schaefer
2015-10-29 15:10                       ` Peter Stephenson
2015-10-29 16:25                     ` Jun T.
2015-10-29 16:56                       ` Peter Stephenson
2015-10-30 15:02                         ` Daniel Shahaf
2015-11-03 16:31                           ` Chi Hsuan Yen

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