From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 7 Oct 2012 08:08:38 -0400 To: 9fans@9fans.net Message-ID: <348b40bd30e3dff86680b54528c2cd7e@kw.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] acme Edit bug Topicbox-Message-UUID: bd636bfc-ead7-11e9-9d60-3106f5b1d025 On Sat Oct 6 17:56:35 EDT 2012, mirtchovski@gmail.com wrote: > Edit (or something in its chain) appears to be broken on buffer > boundary in p9p and in plan9. To test: >=20 > $ perl -e '{print "A"x1023;}' > t.txt # for plan9 acme replace 1023 wit= h 8191 > $ echo [any multibyte utf rune, for example =D0=A9] >> t.txt > $ acme t.txt > [ in acme, middle-swipe "Edit , |cat" without the quotes ] >=20 > this happens with any binary on the other side of the pipe (originally > discovered with gofmt). it happens on multiples of that size too, > 1024, 2048, etc for p9p. it does not occur if just the pipe is used, > only when going through Edit. in case you don't read the p9p list, there's a pach for this. the p9p patch was applied; the plan 9 one has not yet been applied. plan9 /n/sources/patch/acme-xfid p9p https://bitbucket.org/rsc/plan9port/changeset/27213bfba2ec/ - erik