Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
toLowerCase() is Locale-dependent - as is toUpperCase().
For comparisons, can often use equalsIgnoreCase(String) instead.
If an actual lower/upper case is required, then should use a fixed locale (unless the code is intended to use the default locale, which is quite unusual for Commons)
A suitable locale is Locale.ENGLISH as that behaves well with ASCII and ISO-8859-1.