On 02/24/2011 10:15 AM, Eric Blake wrote:
> [dropping bug-autoconf, bug-m4]
> 
> On 02/24/2011 09:04 AM, Jim Meyering wrote:
>> FYI,
>>
>> Here's a much-reduced test case for the short-needle case:
>>
>>     const char *needle = ".d.";
>>     const char *haystack = "..d.";
>>     const char* p = strstr (haystack, needle);
>>     ASSERT (p && p - haystack == 1);
>>
>> Interestingly, it doesn't trigger a failure in glibc's
>> slightly different implementation.  Eric mentioned
>> privately that glibc does not yet have gnulib's commit
>> fffd5faca, and that affects periodicity detection.
> 
> Not quite right.  But Jim and I did discover:
> 
> needle "." and haystack "..wi.d." fails with gnulib.

needle ".d." and haystack "..wi.d."

(now both of us have mistyped a test case)

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to