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: [email protected]
For additional commands, e-mail: [email protected]