From a8985a440b12461ce5e143b80b5e5df51508c685 Mon Sep 17 00:00:00 2001 From: Stig Venaas Date: Mon, 30 Oct 2000 20:00:56 +0000 Subject: [PATCH] Use the macro UTF8DN to set whether new UTF8 dn_normalize() code should be used. --- servers/slapd/dn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index e5733c968a..357b35e9fb 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -28,6 +28,8 @@ #define INQUOTEDVALUE 7 #define B4SEPARATOR 8 + +#ifdef UTF8DN /* * Upper cases a UTF8 character. We cheat a bit, we only change to upper * if the byte length is preserved. Should be replaced. @@ -108,6 +110,7 @@ UTF8touppercheat( unsigned char *p ) return len; } +#endif /* * dn_validate - validate and compress dn. the dn is @@ -277,7 +280,7 @@ char * dn_normalize( char *dn ) { /* upper case it */ -#if 1 +#ifndef UTF8DN ldap_pvt_str2upper( dn ); #else /* enabling this might require reindexing */ -- 2.39.5