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

Bug#243885: \-quoting in character class



On Tue, Jun 01, 2004 at 04:13:00AM +0000, Gerrit Pape wrote:
> > On Mon, May 31, 2004 at 05:13:56PM +0000, Gerrit Pape wrote:
> > > I patched the diet libc fnmatch() function to support \-quoting,

> Now I'm interested in fixing the dietlibc also.

Hi, the upstream author of the diet libc disagrees, and quotes relevant
parts from the susv3 standard, see

 http://article.gmane.org/gmane.linux.lib.dietlibc/541
 http://article.gmane.org/gmane.linux.lib.dietlibc/543

Changing Herbert's test program accordingly seems to work fine, with the
glibc and the dietlibc:

 $ cat fnmatch.c 
 #include <stdio.h>
 #include <fnmatch.h>
 int main(int argc, char **argv) {
   printf("%d\n", fnmatch("[]a]", "a", 0));
   return 0;
 }
 $ gcc fnmatch.c && ./a.out
 0
 $

Regards, Gerrit.



Reply to: