ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: Credentials With Turkish Locale
Date Mon, 06 Dec 2010 16:59:06 GMT
Ivy does pass the Locale.US to all toLowerCase()/toUpperCase() method calls 
(except from one I've discovered yesterday, but that shouldn't cause this 
issue).

Maarten




----- Original Message ----
From: Jesse Glick <jesse.glick@oracle.com>
To: dev@ant.apache.org
Sent: Mon, December 6, 2010 4:56:04 PM
Subject: Re: Credentials With Turkish Locale

On 12/02/2010 12:47 PM, Faruk Can Kaya wrote:
> It is possible due to a String.toLowerCase function. I have seen something like 
>"bas?ic".

I guess you mean "basıc", from "BASIC".toLowerCase(). This bug plagues Java 
software generally. (*) All uses of toLowerCase and toUpperCase in Ant have long 
since been fixed to pass Locale.ENGLISH but perhaps this fix has not been made 
in Ivy.

(*) I have lobbied without success to get no-arg String.toUpper/LowerCase() to 
be formally @Deprecated in the Java platform so developers would take notice and 
fix their code. (On the rare occasions when you actually want a locale-sensitive 
case conversion, passing Locale.getDefault() makes your intent explicit.) I 
guess I can try again.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message