ICU-7946 Locale.ROOT cannot be used for implementing com.ibm.icu.base

X-SVN-Rev: 29376
This commit is contained in:
Yoshito Umaoka 2011-01-28 04:42:45 +00:00
parent 11f120a991
commit 6d0e6b9a8e

View File

@ -2249,7 +2249,7 @@ public class Calendar implements Serializable, Cloneable, Comparable<Calendar> {
*/
public String getType() {
// JDK supports Gregorian, Japanese and Buddhist
String name = calendar.getClass().getSimpleName().toLowerCase(Locale.ROOT);
String name = calendar.getClass().getSimpleName().toLowerCase(Locale.US);
if (name.contains("japanese")) {
return "japanese";
} else if (name.contains("buddhist")) {