summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/unilbrk/ulc-common.c4
-rw-r--r--modules/unilbrk/ulc-common2
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a96a0fe2f..a96ef80ed9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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>.
(iconv_string_length, iconv_string_keeping_offsets): Remove functions.
* lib/unilbrk/ulc-common.h (iconv_string_length,
diff --git a/lib/unilbrk/ulc-common.c b/lib/unilbrk/ulc-common.c
index 7bdfa44919..d035ded727 100644
--- 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
index 4729f662f8..f7e6242704 100644
--- a/modules/unilbrk/ulc-common
+++ b/modules/unilbrk/ulc-common
@@ -7,7 +7,7 @@ lib/unilbrk/ulc-common.c
Depends-on:
c-ctype
-streq
+c-strcaseeq
configure.ac: