-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
6
-
x86
-
windows_xp
A DESCRIPTION OF THE REQUEST :
As already done for many other classes (e.g. any Number class) it would be fine if java.util.Locale also provides a method to parse a Locale-String like "en_GB"
JUSTIFICATION :
nearly each developer will come to the point to parse a locale and writes his own solution. It is not much work to integrate it in the Locale class itself and would make it more usable
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Locale locale = Locale.parseLocale("en");
locale = Locale.parseLocale("en_GB");
locale = Locale.parseLocale("en-GB");
// ...
ACTUAL -
locale = myParseLocale("en_GB");
As already done for many other classes (e.g. any Number class) it would be fine if java.util.Locale also provides a method to parse a Locale-String like "en_GB"
JUSTIFICATION :
nearly each developer will come to the point to parse a locale and writes his own solution. It is not much work to integrate it in the Locale class itself and would make it more usable
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Locale locale = Locale.parseLocale("en");
locale = Locale.parseLocale("en_GB");
locale = Locale.parseLocale("en-GB");
// ...
ACTUAL -
locale = myParseLocale("en_GB");
- relates to
-
JDK-6875847 RFE: Java Locale Enhancement
-
- Closed
-
-
JDK-6196367 Support RFC 4646 language tags
-
- Closed
-