From dev-return-24706-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Mon Mar 05 05:41:05 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 55744 invoked from network); 5 Mar 2007 05:41:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 05:41:05 -0000 Received: (qmail 24225 invoked by uid 500); 5 Mar 2007 05:41:11 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 24198 invoked by uid 500); 5 Mar 2007 05:41:11 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 24189 invoked by uid 99); 5 Mar 2007 05:41:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 21:41:11 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of richard.liangyx@gmail.com designates 64.233.184.231 as permitted sender) Received: from [64.233.184.231] (HELO wr-out-0506.google.com) (64.233.184.231) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 21:41:01 -0800 Received: by wr-out-0506.google.com with SMTP id 58so2117975wri for ; Sun, 04 Mar 2007 21:40:40 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZLMQsUW4HJGeRWRzH6SZTrquNKZk0GsBif9BnrsEn2YE2lHwWuJaMOWhrN8qzSqQAuT6rjjEG/YMJPqHM1QSymWzx6OLqlz3RMdCA5xQlPeqRxFzZZUuUmeHjyCdLjCS/YH+emNhX3C28oUugTCHqQ5uPRLWUDjCchcw/s+QJ6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I2zhH1wJpMj0bwcvAjTsmXQbQeTb+fO3d/zEjmrIBBL0HSLchbeTU592zQ2uPAmE5a1dUv/Cyf8BJr3pH3eXiAxRXPolI40ZkDStZZvzZM5k+zbZkHIVJ9MicQej/yfHGsRQB/H4vMc5dy7uRzs/DFzuzeOmftEAJ0qvbRPz+uU= Received: by 10.114.151.13 with SMTP id y13mr1132895wad.1173073239027; Sun, 04 Mar 2007 21:40:39 -0800 (PST) Received: by 10.114.95.6 with HTTP; Sun, 4 Mar 2007 21:40:38 -0800 (PST) Message-ID: Date: Mon, 5 Mar 2007 13:40:38 +0800 From: "Richard Liang" To: dev@harmony.apache.org Subject: Re: [classlib][jndi] Test failure and others In-Reply-To: <906dd82e0703042137n783d6d52qccd0d08197bfdd5b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <906dd82e0703020149p11d53027n9423514e09965247@mail.gmail.com> <906dd82e0703042137n783d6d52qccd0d08197bfdd5b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 3/5/07, Mikhail Loenko wrote: > Thanks! > > How do you check/change file encoding? I guess your default file encoding is iso-8859-5. ;-), and use native2ascii to change it to ascii. > > Thanks, > Mikhail > > 2007/3/5, Richard Liang : > > On 3/2/07, Mikhail Loenko wrote: > > > Hmmm. I can't reproduce that. CCs also run fine... > > > > > > the test originally had this line > > > assertEquals(8, rdn.toString().getBytes().length); > > > could you please try to replace it with > > > assertEquals(8, rdn.toString().length()); > > > > Yes, this solution works. I have committed the change. (I also changed > > the file encoding from iso-8859-5 to ascii) Thanks a lot, Mikhail. > > > > > > > > Thanks, > > > Mikhail > > > > > > 2007/3/2, Richard Liang : > > > > Hello, > > > > > > > > The test case org.apache.harmony.jndi.tests.javax.naming.ldap.whitebox.TestRdnWhiteBoxDevelopment.testToString002 > > > > fails on both RI 5.0 and Harmony with the same message > > > > "junit.framework.AssertionFailedError: expected:<8> but was:<14>". > > > > Could anyone have a look at it? > > > > > > > > Also I cannot edit this test file in Eclipse because I set the default > > > > text encoding as "US-ASCII". Do we have any agreement about Harmony > > > > source file encoding? Thanks a lot. > > > > > > > > Best regards, > > > > -- > > > > Richard Liang > > > > China Development Lab, IBM > > > > > > > > > > > > > -- > > Richard Liang > > China Development Lab, IBM > > > -- Richard Liang China Development Lab, IBM