directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r326728 - /directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapStringTest.java
Date Wed, 19 Oct 2005 22:13:46 GMT
Author: elecharny
Date: Wed Oct 19 15:13:41 2005
New Revision: 326728

URL: http://svn.apache.org/viewcvs?rev=326728&view=rev
Log:
Fixed an UTF-8/locale pb

Modified:
    directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapStringTest.java

Modified: directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapStringTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapStringTest.java?rev=326728&r1=326727&r2=326728&view=diff
==============================================================================
--- directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapStringTest.java
(original)
+++ directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapStringTest.java
Wed Oct 19 15:13:41 2005
@@ -76,9 +76,9 @@
     {
         LdapString ls = new LdapString( "J\u00e9r\u00f4me".getBytes( "UTF-8" ) );
         
-        Assert.assertEquals( "Jérôme", ls.getString() );
+        Assert.assertEquals( "J\u00e9r\u00f4me", ls.getString() );
         Assert.assertEquals( 8, ls.getNbBytes() );
-        Assert.assertEquals( "Jérôme" , new String( ls.getBytes(), "UTF-8" ) );
+        Assert.assertEquals( "J\u00e9r\u00f4me" , new String( ls.getBytes(), "UTF-8" ) );
     }
 
     /**
@@ -88,9 +88,9 @@
     {
         LdapString ls = new LdapString( new byte[]{'J', (byte)0xc3, (byte)0xa9, 'r', (byte)0xc3,
(byte)0xb4, 'm', 'e'} );
         
-        Assert.assertEquals( "Jérôme", ls.getString() );
+        Assert.assertEquals( "J\u00e9r\u00f4me", ls.getString() );
         Assert.assertEquals( 8, ls.getNbBytes() );
-        Assert.assertEquals( "Jérôme" , new String( ls.getBytes(), "UTF-8" ) );
+        Assert.assertEquals( "J\u00e9r\u00f4me" , new String( ls.getBytes(), "UTF-8" ) );
     }
 
     /**



Mime
View raw message