+2008-05-10 Bruno Haible <bruno@clisp.org>
+
+ * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
+ (is_utf8_encoding): Use a case-insensitive comparison.
+ * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
+ streq.
+
2008-05-10 Bruno Haible <bruno@clisp.org>
* lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
#include "unilbrk/ulc-common.h"
#include "c-ctype.h"
-#include "streq.h"
+#include "c-strcaseeq.h"
int
is_utf8_encoding (const char *encoding)
{
- if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0))
+ if (STRCASEEQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0))
return 1;
return 0;
}