[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: split the linebreak module
From: |
Bruno Haible |
Subject: |
Re: split the linebreak module |
Date: |
Sat, 10 May 2008 15:42:07 +0200 |
User-agent: |
KMail/1.5.4 |
And this uses a case-insensitive comparison of the encoding name.
2008-05-10 Bruno Haible <address@hidden>
* 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.
*** lib/unilbrk/ulc-common.c.orig 2008-05-10 15:39:12.000000000 +0200
--- lib/unilbrk/ulc-common.c 2008-05-10 15:37:40.000000000 +0200
***************
*** 21,32 ****
#include "unilbrk/ulc-common.h"
#include "c-ctype.h"
! #include "streq.h"
int
is_utf8_encoding (const char *encoding)
{
! if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0))
return 1;
return 0;
}
--- 21,32 ----
#include "unilbrk/ulc-common.h"
#include "c-ctype.h"
! #include "c-strcaseeq.h"
int
is_utf8_encoding (const char *encoding)
{
! if (STRCASEEQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0))
return 1;
return 0;
}
*** modules/unilbrk/ulc-common.orig 2008-05-10 15:39:12.000000000 +0200
--- modules/unilbrk/ulc-common 2008-05-10 15:37:58.000000000 +0200
***************
*** 7,13 ****
Depends-on:
c-ctype
! streq
configure.ac:
--- 7,13 ----
Depends-on:
c-ctype
! c-strcaseeq
configure.ac: