]> git.sur5r.net Git - openldap/commitdiff
Made caseExactMatch() use Unicode normalization
authorStig Venaas <venaas@openldap.org>
Tue, 17 Jul 2001 20:09:37 +0000 (20:09 +0000)
committerStig Venaas <venaas@openldap.org>
Tue, 17 Jul 2001 20:09:37 +0000 (20:09 +0000)
servers/slapd/schema_init.c

index 30ead1ac1a9a31e685545b86cb48e904b55bfc56..b069e72672fdb5d5da5573ede4dfdf407abead88 100644 (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;
 }