gl_REGEX from m4/regex.m4 cannot be reliably tested under C++. The
problem is:
static struct re_pattern_buffer regex;
unsigned char folded_chars[UCHAR_MAX + 1];
...
regex.translate = folded_chars;If the `translate' member is char * on some platforms, this test will fail. On RHEL4, g++ returns: error: invalid conversion from `unsigned char*' to `char*' because the `translate' member is char *. RHEL5 work fine as the `translate' member is unsigned char *. -- albert chin ([email protected])
