mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 15:42:14 +00:00
ICU-2729 Use the invariant converter instead of the default converter.
X-SVN-Rev: 11363
This commit is contained in:
parent
dcff60eb9b
commit
f3596ab8f5
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue