From 0e614ca0ec01df74c6038608d1672d4d1763a8af Mon Sep 17 00:00:00 2001 From: Stig Venaas Date: Tue, 17 Jul 2001 20:09:37 +0000 Subject: [PATCH] Made caseExactMatch() use Unicode normalization --- servers/slapd/schema_init.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.5