X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funilbrk%2Fulc-common.c;h=72793854e6b820821011db997df6e7848347a6a0;hb=9be7a7f2520e9d3dd7ff625823b0ca77de1137e6;hp=7bdfa44919a6c6d8c5816321a8c395cf92794944;hpb=3bcc3f3d73d014f863c561fd129b34c3e058feed;p=gnulib.git diff --git a/lib/unilbrk/ulc-common.c b/lib/unilbrk/ulc-common.c index 7bdfa4491..72793854e 100644 --- a/lib/unilbrk/ulc-common.c +++ b/lib/unilbrk/ulc-common.c @@ -1,5 +1,5 @@ /* Line breaking auxiliary functions. - Copyright (C) 2001-2003, 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2011 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -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; } @@ -43,7 +43,7 @@ is_all_ascii (const char *s, size_t n) unsigned char c = (unsigned char) *s; if (!(c_isprint (c) || c_isspace (c))) - return 0; + return 0; } return 1; }