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.

** Attachment added: "configure.diff"
   http://launchpadlibrarian.net/16099905/configure.diff

-- 
[master] grep -i fails to work on intrepid
https://bugs.launchpad.net/bugs/241990
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to