harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: [classlib][luni] String.toLowerCase/toUpperCase incorrect for supplementary characters (HARMONY-6649)
Date Fri, 24 Sep 2010 06:31:37 GMT
On Fri, Sep 24, 2010 at 2:27 AM, Tim Ellison <t.p.ellison@gmail.com> wrote:

>
> No, I don't think it is a problem.  I was reviewing the invokers of
> toLowerCase() and was confused by the wording in the spec.  I'm happy
> that we should simply lowercase it in a locale independent way, and
> don't need to do a "windows equals" implementation.
>

Ok, but sure seems like a bug to me.

    File f1 = new File("σ.txt");
    File f2 = new File("ς.txt");
    System.out.println(f1.hashCode());
    System.out.println(f2.hashCode());
    System.out.println(f1.equals(f2));

889962580
890776533
true

-- 
Robert Muir
rcmuir@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message