mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5194 fallback to "root" instead of ""
X-SVN-Rev: 19623
This commit is contained in:
parent
5b973ae614
commit
591f3b0253
1 changed files with 3 additions and 0 deletions
|
@ -749,6 +749,9 @@ public final class ULocale implements Serializable {
|
|||
if (loc == null) {
|
||||
return null;
|
||||
}
|
||||
if (loc.toString().length() == 0) {
|
||||
return ROOT;
|
||||
}
|
||||
ULocale result = (ULocale)CACHE.get(loc);
|
||||
if (result == null && defaultULocale != null && loc == defaultULocale.locale) {
|
||||
result = defaultULocale;
|
||||
|
|
Loading…
Add table
Reference in a new issue