Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 46294 invoked from network); 24 Sep 2010 05:58:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 05:58:24 -0000 Received: (qmail 29891 invoked by uid 500); 24 Sep 2010 05:58:24 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 29788 invoked by uid 500); 24 Sep 2010 05:58:22 -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 29781 invoked by uid 99); 24 Sep 2010 05:58:21 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 05:58:21 +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; Fri, 24 Sep 2010 05:58:04 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8O5vglg017806 for ; Fri, 24 Sep 2010 05:57:42 GMT Message-ID: <5231725.379201285307862650.JavaMail.jira@thor> Date: Fri, 24 Sep 2010 01:57:42 -0400 (EDT) From: "Hudson (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6649) String.toLowerCase/toUpperCase incorrect for supplementary characters In-Reply-To: <16069276.187651284495167890.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-6649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914342#action_12914342 ] Hudson commented on HARMONY-6649: --------------------------------- Integrated in Harmony-1.5-head-linux-x86_64 #966 (See [https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/966/]) Re-apply fix for HARMONY-6649 (String.toLowerCase/toUpperCase incorrect for supplementary characters) > String.toLowerCase/toUpperCase incorrect for supplementary characters > --------------------------------------------------------------------- > > Key: HARMONY-6649 > URL: https://issues.apache.org/jira/browse/HARMONY-6649 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M15 > Reporter: Robert Muir > Assignee: Tim Ellison > Fix For: 5.0M15 > > Attachments: HARMONY-6649_filepermission.patch, HARMONY-6649_tests.patch, harmony6649.patch > > > Simple testcase: > {code} > assertEquals("\uD801\uDC44", "\uD801\uDC1C".toLowerCase()); > {code} > Looking at modules/luni/src/main/java/java/lang/String.java, the problem is these methods iterate code units (char) not codepoints (int), > and use Character.toLowerCase(char) and Character.toUpperCase(char), instead of Character.toLowerCase(int), and Character.toUpperCase(int) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.