X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Funilbrk%2Fulc-common.c;h=1ed9c82f6aaa48d681a6964dcf7324f244941139;hb=a9ec89b0052cd2e2307e70ed861754ddc2f099ca;hp=7bdfa44919a6c6d8c5816321a8c395cf92794944;hpb=3bcc3f3d73d014f863c561fd129b34c3e058feed;p=gnulib.git diff --git a/lib/unilbrk/ulc-common.c b/lib/unilbrk/ulc-common.c index 7bdfa4491..1ed9c82f6 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-2010 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; }