From: Kurt Zeilenga Date: Mon, 30 Oct 2000 19:11:29 +0000 (+0000) Subject: Fix UTF-8 bugs (ITS#860) X-Git-Tag: OPENLDAP_REL_ENG_2_0_7~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60859757e5d5978168db4473268ce039f5e2b177;p=thirdparty%2Fopenldap.git Fix UTF-8 bugs (ITS#860) --- diff --git a/include/ldap_pvt.h b/include/ldap_pvt.h index 042cdd18d9..12eda79f17 100644 --- a/include/ldap_pvt.h +++ b/include/ldap_pvt.h @@ -216,7 +216,7 @@ LDAP_F (char *) ldap_utf8_strpbrk( const char* str, const char *set); LDAP_F (char*) ldap_utf8_strtok( char* sp, const char* sep, char **last); /* Optimizations */ -#define LDAP_UTF8_ISASCII(p) ( * (const unsigned char *) (p) < 0x100 ) +#define LDAP_UTF8_ISASCII(p) ( * (const unsigned char *) (p) < 0x80 ) #define LDAP_UTF8_CHARLEN(p) ( LDAP_UTF8_ISASCII(p) \ ? 1 : ldap_utf8_charlen((p)) ) #define LDAP_UTF8_OFFSET(p) ( LDAP_UTF8_ISASCII(p) \