[PATCH] Fix fnmatch handling of collating elements (bug 17396, bug 16976)

Mike Frysinger vapier@gentoo.org
Mon Aug 22 18:35:00 GMT 2016


On 22 Aug 2016 09:08, Andreas Schwab wrote:
> On Aug 18 2016, Mike Frysinger <vapier@gentoo.org> wrote:
> > might be a little more readable:
> > 	strcpy (pattern, "[[.", 3);
> > 	memset (pattern + 3, 'a', LENGTH);
> > 	strcpy (pattern + LENGTH + 3, ".]]", 3);
> 
> Except that it doesn't work.

it's trivial to make it work.  i was just copying & pasting from
your code ... i didn't actually compile it.  nitpicking over the
syntax being valid is wasting time instead of just using the idea
as posted, so why are you doing it ?  just delete the ", 3" and
move on.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160822/314f71df/attachment.sig>


More information about the Libc-alpha mailing list