Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 99399 invoked from network); 15 May 2007 05:32:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2007 05:32:37 -0000 Received: (qmail 92209 invoked by uid 500); 15 May 2007 05:32:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 92181 invoked by uid 500); 15 May 2007 05:32:43 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 92172 invoked by uid 99); 15 May 2007 05:32:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 22:32:43 -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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 22:32:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8666A71406A for ; Mon, 14 May 2007 22:32:16 -0700 (PDT) Message-ID: <15565626.1179207136547.JavaMail.jira@brutus> Date: Mon, 14 May 2007 22:32:16 -0700 (PDT) From: "Mikhail Markov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3307) [classlib][compatibility] String initialized with unicode simbol is prrinted differently on drlvm and RI In-Reply-To: <24833269.1173176064229.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495861 ] Mikhail Markov commented on HARMONY-3307: ----------------------------------------- I'm not sure if it's file.encoding issue. For example, the following code produces different result on DRLVM/IBM VME and RI: import java.nio.charset.Charset; import java.nio.ByteBuffer; public class Test { public static void main(String[] args) { Charset charset = Charset.forName("ISO-8859-1"); ByteBuffer buffer = charset.encode("\u3400"); byte[] b = new byte[buffer.limit()]; buffer.get(b); for (int i = 0; i < b.length; ++i) { System.out.println("b[" + i + "] = " + b[i]); } } } On RI: b[0] = 63 On J9/DRLVM: b[0] = 26 > [classlib][compatibility] String initialized with unicode simbol is prrinted differently on drlvm and RI > -------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3307 > URL: https://issues.apache.org/jira/browse/HARMONY-3307 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Aleksey Ignatenko > Attachments: Test.java > > > If one initializes String with value containing unicode simbol (\uxxxx) then it is printed differently on drlvm and RI. > Code: > String ss = "dir\u3400"; > System.out.println(ss); > Output. > sun: dir? > drlvm: dir-> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.