Comment 6 for bug 241990

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

It took me some time but here I am. This problem is related to grep _and_ the version of libc6.

For some reason, in Intrepid with libc6-dev 2.8 the macro __USE_GNU is not defined in /usr/include/regex.h . Then, the configure script fails to test the libc regex, and grep is build using the internal regex library (the one shipped with grep). This library seems to be quite broken when it comes to deal with multibytes strings and ignore case options. It doesn't even compile when you're forcing multibyte support.

This is confirmed by the fact that "grep" builds and works fine on debian/sid and that the strictly same package (the debian source) build on Ubuntu shows the ignorecase issue.

Then the easiest thing to do is to define the macro _GNU_SOURCE to force the use of the libc regex.

A proposition of patch is attached.

Can someone review it ?

Thanks.