From 60859757e5d5978168db4473268ce039f5e2b177 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga <kurt@openldap.org> Date: Mon, 30 Oct 2000 19:11:29 +0000 Subject: [PATCH] Fix UTF-8 bugs (ITS#860) --- include/ldap_pvt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- GitLab