Made caseExactMatch() use Unicode normalization

This commit is contained in:
Stig Venaas 2001-07-17 20:09:37 +00:00
parent 6c362d77ac
commit 0e614ca0ec

View file

@ -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;
}