From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27413 invoked by alias); 19 Sep 2012 18:25:09 -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: 30684 Received: (qmail 10381 invoked from network); 19 Sep 2012 18:25:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 209.85.215.171 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=MJtnkEOqI4UTZeRfjgIeceKbb8Rr80bma3pyn+bjGAs=; b=B5Zezj7OU6wBZizijk1FWfS9WTyG9qFOOLc+F7ewfJ62ALM99Ipiuz7o5n7ukw1lm0 GA09O+Zd2S6pXM8aHP8tNLsLNuj0qmyCCDa8ZUpR4KIhsVXQZCwfS1TLwbPAsQpwyMxW i3Bmej1JcesvKfrh3HWNrJ+N54Zasew8v+c35R5deMH9ihm36Sz6gZy7LcKjzFzGzMGI 1DJLwl2WCi7sc37bB38c/WSEBxzEytRIuY8F/aSM00bGGRGves7ZZyuXvSGopvYu0eAl XHeu0mMtC+YFYrxf/HQJZYAAUl2+dUKSRf30i41MnA0gd8T/scWUf08YnVhMnosgnzuF U2iA== X-ProxyUser-IP: 86.6.16.18 Date: Wed, 19 Sep 2012 19:24:59 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: PATCH: PCRE support for embedded NUL characters Message-ID: <20120919192459.30480644@pws-pc.ntlworld.com> In-Reply-To: <20120917055925.GA32663@redoubt.spodhuis.org> References: <20120916125015.GA87764@redoubt.spodhuis.org> <20120917055925.GA32663@redoubt.spodhuis.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlwTfZSEzDaHjCvYQrKOjEZUHW24k8JHQOm5y/GjV0UYZUEMLAa+iwV3/GNI6KB1NeyZuVg On Mon, 17 Sep 2012 01:59:25 -0400 Phil Pennock wrote: > Anyone have any opinions of what ZPCRE_OP should count? > > It's currently documented as counting bytes, which is certainly > accurate, but seems not very useful given that you can't index strings > by byte offsets in zsh (or can you, with some option I've not noticed > before?) Ideally, it's bytes with MULTIBYTE unset, and code points with it set, i.e. what the mb/wc functions consider a "character". -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/