ICU-13217 - UWP version ends up falling back to the 'en_US' locale. (Missing lines due to bad merge).

X-SVN-Rev: 40146
This commit is contained in:
Jeff Genovy 2017-05-31 17:17:54 +00:00
parent 694142470e
commit de6771cb4b

View file

@ -1809,6 +1809,8 @@ The leftmost codepage (.xxx) wins.
}
// Now normalize the resulting name
correctedPOSIXLocale = static_cast<char *>(uprv_malloc(POSIX_LOCALE_CAPACITY + 1));
/* TODO: Should we just exit on memory allocation failure? */
if (correctedPOSIXLocale)
{
int32_t posixLen = uloc_canonicalize(modifiedWindowsLocale, correctedPOSIXLocale, POSIX_LOCALE_CAPACITY, &status);