Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 40125 invoked from network); 24 Sep 2010 05:14:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 05:14:36 -0000 Received: (qmail 749 invoked by uid 500); 24 Sep 2010 05:14:35 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 428 invoked by uid 500); 24 Sep 2010 05:14:33 -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 419 invoked by uid 99); 24 Sep 2010 05:14:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 05:14:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rcmuir@gmail.com designates 209.85.161.49 as permitted sender) Received: from [209.85.161.49] (HELO mail-fx0-f49.google.com) (209.85.161.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 05:14:26 +0000 Received: by fxm4 with SMTP id 4so1976229fxm.36 for ; Thu, 23 Sep 2010 22:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=dj2vt3zmzbwhViU3hWwLP81Tt7j8KGe6xhHEXh9FqpI=; b=BnbPYOR3nnljjncgwAiyHHb1syb0KqwsH3Wy25jGxVqCBFuZ8s8ReYg6lvve3iv5XU +HJbAjkkmTrU3YLqlYq2ctxnPWK4rPzKLQ7NyXHAKyr5qgL3C7/KZGnbbRvED3URVUZg VVBrGzMT+QoPT8wiNCobOISKUt2beEjCJi0iY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=QnyZ1rtVbEp/y4zT0u09YpFzfBiw/stNTl9OgYZqFNNJWy3wz8JghOEWX/3hV9kZjA r4lsJIWtmhOGAAwDGC9Kw+Z5NqatqutZyTkvmpveoLr1SSdclGM6dJSy+H3PvK7kT/I1 d2DMuDK/CrISjxKkIoxvELwmV0GDEs4CaWRwI= Received: by 10.223.112.204 with SMTP id x12mr2988984fap.24.1285305242542; Thu, 23 Sep 2010 22:14:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.106.19 with HTTP; Thu, 23 Sep 2010 22:13:42 -0700 (PDT) In-Reply-To: <4C9C31BD.2010504@gmail.com> References: <16508996.357041285200633873.JavaMail.jira@thor> <4C9ABC65.6000202@gmail.com> <4C9C0E0B.6080703@gmail.com> <4C9C24C1.6030809@gmail.com> <4C9C31BD.2010504@gmail.com> From: Robert Muir Date: Fri, 24 Sep 2010 01:13:42 -0400 Message-ID: Subject: Re: [classlib][luni] String.toLowerCase/toUpperCase incorrect for supplementary characters (HARMONY-6649) To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=001636c5b1f468e4a60490fa72e0 --001636c5b1f468e4a60490fa72e0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Sep 24, 2010 at 1:06 AM, Tim Ellison wrote: > On 24/Sep/2010 05:28, Robert Muir wrote: > > On Fri, Sep 24, 2010 at 12:10 AM, Tim Ellison > wrote: > >> Thanks. Seems strange since it could obviously produce some 'unusual' > >> results. In this case, computing a hashCode, it likely doesn't matter > >> if the result is a bogus string. > >> > >> > > Do you have an example where the result would be unusual for a filename= ? > > I'm not thinking it would be unusual for being interpreted as file path > (e.g. it won't introduce a '/' or anything like that) but that the > result would not be the lowercase equivalent in the locale that the user > created the filename. > > but case-sensitive filenames (such as windows) don't use locale-dependent comparisons? they implement locale-independent case-folding. for example if i have a file "=CF=83.txt", I cannot create "=CF=82.txt". (I just tried) Both of these files are already in lowercase. The interesting question is: how does hashCode() relate? Because a hashcode based upon String.toLowerCase(Locale.ENGLISH) would return different hashcodes for these two filenames, but with UCharacter.foldCase(), it would be the same. --=20 Robert Muir rcmuir@gmail.com --001636c5b1f468e4a60490fa72e0--