Re: Renaming files on win32

Branko Čibej <[email protected]>
Newsgroups gmane.comp.version-control.subversion.devel,gmane.mail.eyebrowse.user
Message-ID <[email protected]>
Gili wrote:

> On Thu, 23 Dec 2004 02:38:46 +0100, [email protected]_ wrote:
>
> >Gili wrote:
> >
> >> On Wed, 22 Dec 2004 21:53:39 +0100, [email protected]__ wrote:
> >>
> >> >Hear me: regardless of the encoding used, case folding is
> >> >locale-dependent. It doesn't matter a bit whether the OS uses 
> Unicode or
> >> >not.
> >>
> >> How so? I fail to see how case-folding is locale-dependant under 
> unicode.
> >
> >Because different languages don't always agree about a) which letters
> >are uppercase and which are lowercase, and b) how to convert from one to
> >the other.
> >
> >And the edge cases aren't as uncommon as you might think. For example,
> >take any German word that contains the letter "Ã " (no, *not* beta);
> >represent it in lowercase; convert to uppercase, convert back. The
> >result won't be the same as what you started with, because "Ã " happens
> >to be a lowercase letter whose uppercase equivalent is "SS".
> >
> >-- Brane
>
> So how could Java possibly implement Character.isLowerCase()? 
> Something does not make sense here. That method claims to indicate if 
> a character is lowercase in absolute terms.

I have no idea. Although note that even if you can implement 
isLowerCase, that doesn't mean you can implement toUpperCase. Anyway I 
suspect Java is taking shortcuts.

-- Brane
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.