Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: PCRE support for embedded NUL characters
- X-seq: zsh-workers 30671
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: PCRE support for embedded NUL characters
- Date: Mon, 17 Sep 2012 01:59:25 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201107; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=27sKg/mWIFth068TIntkPrKn3Xffuamq/3yxBm4zeUM=; b=TrfqBcGOY8yuLE7bS3Eflq+9EuGXEmkY3QVlK5ahfGUIGeZhOjpWs8mY7vpHGFPTTnT93Yn+Sv4q+JyfuUz+i8vHu1E5tJB/RW36vvG0QtV7MucTWlEpbBMD4zaZt+Lfi3v88efUu7Xl2kQyqoHl7740wxwJZdx3vBoZEpcue3w=;
- In-reply-to: <20120916125015.GA87764@redoubt.spodhuis.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20120916125015.GA87764@redoubt.spodhuis.org>
On 2012-09-16 at 08:50 -0400, Phil Pennock wrote:
> Another open question: are $mbegin/$mend offsets supposed to be in
> octets or in characters? Given the MB_ prefix, I'm guessing I just
> broke this and will need to fix it tomorrow, before commit, after I get
> some sleep. Do we have a decent way to count the number of wide
> characters in an unmetafied string which can contain NUL characters?
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?)
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author