9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] acme Edit bug
@ 2012-10-02 22:45 andrey mirtchovski
  2012-10-02 23:52 ` Rob Pike
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: andrey mirtchovski @ 2012-10-02 22:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs, plan9port-dev

Edit (or something in its chain) appears to be broken on buffer
boundary in p9p and in plan9. To test:

$ perl -e '{print "A"x1023;}' > t.txt # for plan9 acme replace 1023 with 8191
$ echo [any multibyte utf rune, for example Щ] >> t.txt
$ acme t.txt
[ in acme, middle-swipe "Edit , |cat" without the quotes ]

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.



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

* Re: [9fans] acme Edit bug
  2012-10-02 22:45 [9fans] acme Edit bug andrey mirtchovski
@ 2012-10-02 23:52 ` Rob Pike
  2012-10-03  1:45 ` erik quanstrom
  2012-10-07 12:08 ` erik quanstrom
  2 siblings, 0 replies; 5+ messages in thread
From: Rob Pike @ 2012-10-02 23:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: plan9port-dev

That sounds like a bug I fixed in plan9port acme a couple of years
ago, but it's nice to see it's still broken.

I'll dig in.

-rob



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

* Re: [9fans] acme Edit bug
  2012-10-02 22:45 [9fans] acme Edit bug andrey mirtchovski
  2012-10-02 23:52 ` Rob Pike
@ 2012-10-03  1:45 ` erik quanstrom
  2012-10-03  2:31   ` andrey mirtchovski
  2012-10-07 12:08 ` erik quanstrom
  2 siblings, 1 reply; 5+ messages in thread
From: erik quanstrom @ 2012-10-03  1:45 UTC (permalink / raw)
  To: 9fans

On Tue Oct  2 18:46:26 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:
> 
> $ perl -e '{print "A"x1023;}' > t.txt # for plan9 acme replace 1023 with 8191
> $ echo [any multibyte utf rune, for example Щ] >> t.txt

or with ubiquitous tools and codepoints

	awk 'BEGIN{for(i = 0; i < 8191; i++) printf "a"; print "☺"}' > m

- erik



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

* Re: [9fans] acme Edit bug
  2012-10-03  1:45 ` erik quanstrom
@ 2012-10-03  2:31   ` andrey mirtchovski
  0 siblings, 0 replies; 5+ messages in thread
From: andrey mirtchovski @ 2012-10-03  2:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> or with ubiquitous tools and codepoints

don't deny me the opportunity to use the only thing I remember from perl :p



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

* Re: [9fans] acme Edit bug
  2012-10-02 22:45 [9fans] acme Edit bug andrey mirtchovski
  2012-10-02 23:52 ` Rob Pike
  2012-10-03  1:45 ` erik quanstrom
@ 2012-10-07 12:08 ` erik quanstrom
  2 siblings, 0 replies; 5+ messages in thread
From: erik quanstrom @ 2012-10-07 12:08 UTC (permalink / raw)
  To: 9fans

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:
> 
> $ perl -e '{print "A"x1023;}' > t.txt # for plan9 acme replace 1023 with 8191
> $ echo [any multibyte utf rune, for example Щ] >> t.txt
> $ acme t.txt
> [ in acme, middle-swipe "Edit , |cat" without the quotes ]
> 
> 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



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

end of thread, other threads:[~2012-10-07 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-02 22:45 [9fans] acme Edit bug andrey mirtchovski
2012-10-02 23:52 ` Rob Pike
2012-10-03  1:45 ` erik quanstrom
2012-10-03  2:31   ` andrey mirtchovski
2012-10-07 12:08 ` erik quanstrom

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