ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <jesse.gl...@sun.com>
Subject Re: log4j failing on Gump, maybe something in recent commits
Date Thu, 18 Feb 2010 02:41:20 GMT
Stefan Bodewig wrote:
> This means in a Turkish locale "FILESET".equalsIgnoreCase("fileset") returns false

No, it returns true, as the Javadoc says it should. Try it:

$ jrunscript
js> java.util.Locale.setDefault(new java.util.Locale("tr"))
js> new java.lang.String("FILESET").equalsIgnoreCase("fileset")
true

> as does "FILESET".toLowerCase().equals("fileset").

This does return false:

js> new java.lang.String("FILESET").toLowerCase()
fıleset
js> new java.lang.String("FILESET").toLowerCase().equals("fileset")
false


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


Mime
View raw message