[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: microlight review
- From: Daurnimator <quae@...>
- Date: Wed, 2 May 2012 21:08:55 +1000
On 2 May 2012 18:32, steve donovan <email@example.com> wrote:
> On Sat, Apr 28, 2012 at 10:45 PM, David Manura <firstname.lastname@example.org> wrote:
>> to use Microlight rather than roll their own functions. As a case in
>> point: ml.escape is currently incompatible with 5.1 due to \0
>> handling. Test case to add:
> Not sure how to fix this, because the Lua 5.1 handling of \0 is not consistent:
> 2 2
> i.e. works fine for _finding_, but you get an 'empty' string when matching.
You have to use %z to match embedded nulls; a unexpected lesson I
learnt long ago.
On the other hand; everything works fine with classes (ie; %S will match \0).