Locale system changes to better mimic Sun's VM.

This commit is contained in:
jet
2010-10-14 16:20:41 -06:00
parent cddc305a75
commit 0713f8d5cb
2 changed files with 25 additions and 17 deletions

View File

@ -11,12 +11,18 @@
package java.util;
public class Locale {
public static final Locale ENGLISH = new Locale("en", "us");
private static final Locale DEFAULT;
public static final Locale ENGLISH = new Locale("en", "");
private final String language;
private final String country;
private final String variant;
static {
DEFAULT = new Locale(System.getProperty("user.language"),
System.getProperty("user.region"));
}
public Locale(String language, String country, String variant) {
this.language = language;
this.country = country;
@ -44,6 +50,6 @@ public class Locale {
}
public static Locale getDefault() {
return ENGLISH;
return DEFAULT;
}
}