lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

2015-11-20 0:48 GMT+02:00 Daurnimator <>:
> On 20 November 2015 at 00:05, Roberto Ierusalimschy
>> What is the issue here? What would be the "correct" behavior? The
>> documentation is clear that "Option 's' expects a string without
>> embedded zeros"

> The problem is that if you *do* give it a string with embedded zeros,
> it suddenly changes behaviour at a length of > 100.

Correct programs are correct in only one way. Incorrect programs
are wrong in many interesting ways, including that of appearing to
be correct.

If you _know_ that you may have embedded zeros, why don't you
use the 'q' option instead?