From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 13 Jul 2010 14:47:05 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: <136f4778140ad5331b980f5d45eff3c5@coraid.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] regexp doubt Topicbox-Message-UUID: 3ee494dc-ead6-11e9-9d60-3106f5b1d025 On Tue Jul 13 14:40:02 EDT 2010, rsc@swtch.com wrote: > I think you have found a real bug. > > I created a new window containing > > x x+ x- xy > > and I executed Edit ,x/x[ +\-]/d > and sure enough it doesn't delete x-. this really does work for me at coraid, but not at home. the only difference i see is the fact that at coraid, 16-bit runes are used, while i am using 32-bit runes. /n/coraid//sys/src/cmd/acme/regx.c:487,493 - regx.c:487,493 exprp++; /* eat '-' */ if((c2 = nextrec()) == ']') goto Error; - classp[n+0] = 0xFFFF; + classp[n+0] = Runemax; classp[n+1] = c1; classp[n+2] = c2; n += 3; - erik