Skip to content
Snippets Groups Projects
Commit a8985a44 authored by Stig Venaas's avatar Stig Venaas
Browse files

Use the macro UTF8DN to set whether new UTF8 dn_normalize() code should

be used.
parent df24c61f
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment