Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 9231 invoked from network); 12 Sep 2007 20:08:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 20:08:16 -0000 Received: (qmail 36708 invoked by uid 500); 12 Sep 2007 20:08:09 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 36688 invoked by uid 500); 12 Sep 2007 20:08:09 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 36677 invoked by uid 99); 12 Sep 2007 20:08:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 13:08:08 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 20:09:51 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E55631A983A; Wed, 12 Sep 2007 13:07:51 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r575060 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TableFunctionTest.java Date: Wed, 12 Sep 2007 20:07:51 -0000 To: derby-commits@db.apache.org From: rhillegas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070912200751.E55631A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rhillegas Date: Wed Sep 12 13:07:51 2007 New Revision: 575060 URL: http://svn.apache.org/viewvc?rev=575060&view=rev Log: DERBY-716: Apply UTF8 encoding to Strings created from byte arrays in TableFunctionTest. Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TableFunctionTest.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TableFunctionTest.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TableFunctionTest.java?rev=575060&r1=575059&r2=575060&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TableFunctionTest.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TableFunctionTest.java Wed Sep 12 13:07:51 2007 @@ -47,6 +47,8 @@ // /////////////////////////////////////////////////////////////////////////////////// + private static final String UTF8 = "UTF8"; + // functions to drop at teardown time private static final String[] FUNCTION_NAMES = { @@ -1526,7 +1528,7 @@ { Blob blob = (Blob) obj; - return new String( blob.getBytes( (long) 0, (int) blob.length() ) ); + return new String( blob.getBytes( (long) 0, (int) blob.length() ), UTF8 ); } else if ( obj instanceof Clob ) { @@ -1538,7 +1540,7 @@ { byte[] bytes = (byte[]) obj; - return new String( bytes ); + return new String( bytes, UTF8 ); } else { return obj.toString(); } }