# HG changeset patch # User Bruno Haible # Date 1210426848 -7200 # Node ID fd29ccb01214a221e09b87772fd2ae5fcfe00c21 # Parent 53b5cb33e138b3e2f95ca00469b2115c2c5316e6 Use case-insensitive comparison. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-10 Bruno Haible + + * 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 * lib/unilbrk/ulc-common.c: Don't include . diff --git a/lib/unilbrk/ulc-common.c b/lib/unilbrk/ulc-common.c --- a/lib/unilbrk/ulc-common.c +++ b/lib/unilbrk/ulc-common.c @@ -21,12 +21,12 @@ #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; } diff --git a/modules/unilbrk/ulc-common b/modules/unilbrk/ulc-common --- a/modules/unilbrk/ulc-common +++ b/modules/unilbrk/ulc-common @@ -7,7 +7,7 @@ Depends-on: c-ctype -streq +c-strcaseeq configure.ac: