From: Stig Venaas Date: Tue, 17 Jul 2001 20:09:37 +0000 (+0000) Subject: Made caseExactMatch() use Unicode normalization X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1226 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0e614ca0ec01df74c6038608d1672d4d1763a8af;p=openldap Made caseExactMatch() use Unicode normalization --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 30ead1ac1a..b069e72672 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -960,6 +960,11 @@ caseExactMatch( struct berval *value, void *assertedValue ) { +#if UTF8MATCH + *matchp = UTF8normcmp( value->bv_val, + ((struct berval *) assertedValue)->bv_val, + UTF8_NOCASEFOLD ); +#else int match = value->bv_len - ((struct berval *) assertedValue)->bv_len; if( match == 0 ) { @@ -969,6 +974,7 @@ caseExactMatch( } *matchp = match; +#endif return LDAP_SUCCESS; }