Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 31105 invoked from network); 19 Sep 2010 12:31:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Sep 2010 12:31:02 -0000 Received: (qmail 70680 invoked by uid 500); 19 Sep 2010 12:31:02 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 70574 invoked by uid 500); 19 Sep 2010 12:30:59 -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 70567 invoked by uid 99); 19 Sep 2010 12:30:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 12:30:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 12:30:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8JCUXgA019579 for ; Sun, 19 Sep 2010 12:30:33 GMT Message-ID: <22927134.281691284899433088.JavaMail.jira@thor> Date: Sun, 19 Sep 2010 08:30:33 -0400 (EDT) From: "Hudson (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6616) [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6 In-Reply-To: <6928972.270011281508036228.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12912217#action_12912217 ] Hudson commented on HARMONY-6616: --------------------------------- Integrated in Harmony-select-1.5-head-linux-x86_64 #111 (See [https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/111/]) Apply patch for HARMONY-6616: [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6 > [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6 > -------------------------------------------------------------------------------------------------- > > Key: HARMONY-6616 > URL: https://issues.apache.org/jira/browse/HARMONY-6616 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M14 > Reporter: deven you > Fix For: 5.0M16 > > Attachments: HARMONY-6616.diff > > Original Estimate: 168h > Remaining Estimate: 168h > > I have run a test to print all available charsets returned by Charset.availableCharsets() both on RI6 and Harmony6, and find RI and harmony return different names for some charsets, below is the summary: > RI6 names Harmony6 names > IBM00858 cp858 > IBM850 cp850 > IBM857 cp857 > IBM860 cp860 > IBM861 cp861 > IBM862 cp862 > IBM863 cp863 > IBM864 cp864 > IBM865 cp865 > IBM866 cp866 > IBM868 cp868 > IBM869 cp869 > x-IBM737 x-ibm-737_P100-1997 > x-IBM856 cp856 > x-IBM875 x-ibm-875_P100-1995 > x-IBM922 cp922 > x-IBM1006 x-ibm-1006_P100-1995 > x-IBM1025 x-ibm-1025_P100-1995 > x-IBM1112 x-ibm-1112_P100-1995 > x-IBM1122 x-ibm-1122_P100-1999 > x-IBM1123 x-ibm-1123_P100-1995 > x-IBM1124 x-ibm-1124_P100-1996 > x-IBM1097 x-ibm-1097_P100-1995 > x-IBM1098 x-ibm-1098_P100-1995 > x-MacCyrillic x-mac-cyrillic > x-MacGreek x-mac-greek > x-MacTurkish x-mac-turkish > Java spec for Charset.availableCharsets() says: Constructs a sorted map from canonical charset names to charset objects. So the difference is due to RI and Harmony6 use different charset names as the canonical names. > For example the pair of IBM00858 and cp858 belongs to the same charset, RI uses IBM00858 as the canonical name but Harmony uses cp858, thus they return different charset names for the availableCharsets(). Above charsets are provided by harmony built-in charsets. I suppose RI's behavior should be the right one which implies RI uses the correct canonical charset names so I have changed this built-in charsets to comply with RI. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.