Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.5
-
None
-
None
Description
These all work:
System.out.println(new Locale("en", "001")); System.out.println(new Locale("en", "150")); System.out.println(new Locale("ar", "001"));
but these all fail with an IllegalArgumentException:
System.out.println(LocaleUtils.toLocale("en_001")); System.out.println(LocaleUtils.toLocale("en_150")); System.out.println(LocaleUtils.toLocale("ar_001"));
Attachments
Issue Links
- relates to
-
LANG-1320 LocaleUtils#toLocale does not support language followed by UN M.49 numeric-3 area code followed by variant
- Closed
- links to