From 81478c69903dbcd299e2748a3a37857647f8fa70 Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Thu, 26 Mar 2009 03:24:33 +0000
Subject: [PATCH] Fix for issue#3880:Core matching rules don't support unicode characters
---
opends/src/server/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRule.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRule.java b/opends/src/server/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRule.java
index 5d79493..47ca005 100644
--- a/opends/src/server/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRule.java
+++ b/opends/src/server/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRule.java
@@ -30,7 +30,7 @@
import static org.opends.messages.SchemaMessages.*;
import static org.opends.server.schema.SchemaConstants.*;
-import static org.opends.server.util.StaticUtils.*;
+import static org.opends.server.schema.StringPrepProfile.*;
import java.util.Collection;
import java.util.Collections;
@@ -147,7 +147,7 @@
throws DirectoryException
{
StringBuilder buffer = new StringBuilder();
- toLowerCase(value, buffer, true);
+ prepareUnicode(buffer, value, TRIM, CASE_FOLD);
int bufferLength = buffer.length();
if (bufferLength == 0)
@@ -233,7 +233,7 @@
// normalizing a full value with the exception that it may include an
// opening or trailing space.
StringBuilder buffer = new StringBuilder();
- toLowerCase(substring, buffer, false);
+ prepareUnicode(buffer, substring, false, CASE_FOLD);
int bufferLength = buffer.length();
if (bufferLength == 0)
--
Gitblit v1.10.0