directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r328627 - in /directory/asn1/branches/asn1-utf8/ber: project.xml src/java/org/apache/asn1/ber/digester/rules/Octets2StringRule.java
Date Wed, 26 Oct 2005 10:39:32 GMT
Author: elecharny
Date: Wed Oct 26 03:39:18 2005
New Revision: 328627

URL: http://svn.apache.org/viewcvs?rev=328627&view=rev
Log:
Fixed the ugly dependancy.

Modified:
    directory/asn1/branches/asn1-utf8/ber/project.xml
    directory/asn1/branches/asn1-utf8/ber/src/java/org/apache/asn1/ber/digester/rules/Octets2StringRule.java

Modified: directory/asn1/branches/asn1-utf8/ber/project.xml
URL: http://svn.apache.org/viewcvs/directory/asn1/branches/asn1-utf8/ber/project.xml?rev=328627&r1=328626&r2=328627&view=diff
==============================================================================
--- directory/asn1/branches/asn1-utf8/ber/project.xml (original)
+++ directory/asn1/branches/asn1-utf8/ber/project.xml Wed Oct 26 03:39:18 2005
@@ -53,14 +53,6 @@
       </properties>
     </dependency>
 
-    <dependency>
-        <groupId>directory-asn1</groupId>
-        <artifactId>asn1-new-ber</artifactId>
-        <version>0.3.3-SNAPSHOT</version>
-        <type>jar</type>
-        <url>http://directory.apache.org/subprojects/asn1/ber</url>
-    </dependency>
-    
     <!-- deps in group -->
 
     <dependency>

Modified: directory/asn1/branches/asn1-utf8/ber/src/java/org/apache/asn1/ber/digester/rules/Octets2StringRule.java
URL: http://svn.apache.org/viewcvs/directory/asn1/branches/asn1-utf8/ber/src/java/org/apache/asn1/ber/digester/rules/Octets2StringRule.java?rev=328627&r1=328626&r2=328627&view=diff
==============================================================================
--- directory/asn1/branches/asn1-utf8/ber/src/java/org/apache/asn1/ber/digester/rules/Octets2StringRule.java
(original)
+++ directory/asn1/branches/asn1-utf8/ber/src/java/org/apache/asn1/ber/digester/rules/Octets2StringRule.java
Wed Oct 26 03:39:18 2005
@@ -17,10 +17,10 @@
 package org.apache.asn1.ber.digester.rules ;
 
 
+import java.io.UnsupportedEncodingException;
 import java.nio.ByteBuffer;
 
 import org.apache.asn1.ber.TagEnum;
-import org.apache.asn1new.util.StringUtils;
 
 
 /**
@@ -68,6 +68,13 @@
             buf.get( octets ) ;
         }
 
-        getDigester().push( StringUtils.toUtf8( octets ) ) ;
+        try
+        {
+        	getDigester().push( new String( octets, "UTF-8" ) ) ;
+        }
+        catch ( UnsupportedEncodingException uee )
+        {
+        	// Nothing to do. UTF-8 *is* supported.
+        }
     }
 }



Mime
View raw message