ICU-2729 Use the invariant converter instead of the default converter.
X-SVN-Rev: 11363
This commit is contained in:
parent
dcff60eb9b
commit
f3596ab8f5
@ -100,7 +100,7 @@ LocaleUtility::getAvailableLocaleNames(const UnicodeString& bundleID)
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
int32_t count = uloc_countAvailable();
|
||||
for (int32_t i = 0; i < count; ++i) {
|
||||
UnicodeString temp(uloc_getAvailable(i));
|
||||
UnicodeString temp(uloc_getAvailable(i), "");
|
||||
result->put(temp, (void*)result, status);
|
||||
if (U_FAILURE(status)) {
|
||||
delete result;
|
||||
@ -577,7 +577,7 @@ ICULocaleService::get(const Locale& locale, int32_t kind, Locale* actualReturn,
|
||||
return result;
|
||||
}
|
||||
|
||||
UnicodeString locName(locale.getName());
|
||||
UnicodeString locName(locale.getName(), "");
|
||||
if (locName.isBogus()) {
|
||||
status = U_MEMORY_ALLOCATION_ERROR;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user