On Fri, Sep 24, 2010 at 12:10 AM, Tim Ellison <t.p.elli...@gmail.com> 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?
In this case the Unicode standard gives a nice background (in fact, filenames are given as the example): see Unicode 5.18, caseless matching: http://www.unicode.org/versions/Unicode5.2.0/ch05.pdf side note: toLowerCase(ENGLISH) isn't exactly the case folding algorithm they describe, thats UCharacter.foldCase(String, ...). But its close and the idea is the same. -- Robert Muir rcm...@gmail.com