Use case-insensitive comparison.
authorBruno Haible <bruno@clisp.org>
Sat, 10 May 2008 13:40:48 +0000 (15:40 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 10 May 2008 13:40:48 +0000 (15:40 +0200)
ChangeLog
lib/unilbrk/ulc-common.c
modules/unilbrk/ulc-common

index 5a96a0fe2fb79ac5d66721c87e367f03340ef96b..a96ef80ed9847c2e190538638892f29c1f3de4b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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>.
index 7bdfa44919a6c6d8c5816321a8c395cf92794944..d035ded727d82a60754e2faa6a10e3c49fe8314f 100644 (file)
 #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;
 }
index 4729f662f83955975d27151072ec6078fac060af..f7e6242704c3448742e3d5aee8c7fc68dcc8198e 100644 (file)
@@ -7,7 +7,7 @@ lib/unilbrk/ulc-common.c
 
 Depends-on:
 c-ctype
-streq
+c-strcaseeq
 
 configure.ac: