From 585625c5f6b43a0796a69b9e257262015ed783d9 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Fri, 5 Feb 2016 06:45:46 +0000 Subject: [PATCH] ICU-12091 Ingnore absense of type map for transform private user type 'x0'. X-SVN-Rev: 38289 --- icu4c/source/common/uloc_keytype.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/icu4c/source/common/uloc_keytype.cpp b/icu4c/source/common/uloc_keytype.cpp index f8f1f1f35d..e7dbcb6371 100644 --- a/icu4c/source/common/uloc_keytype.cpp +++ b/icu4c/source/common/uloc_keytype.cpp @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (C) 2014, International Business Machines +* Copyright (C) 2014-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ @@ -194,8 +194,10 @@ initFromResourceBundle(UErrorCode& sts) { tmpSts = U_ZERO_ERROR; LocalUResourceBundlePointer typeMapResByKey(ures_getByKey(typeMapRes.getAlias(), legacyKeyId, NULL, &tmpSts)); if (U_FAILURE(tmpSts)) { - // type map for each key must exist - U_ASSERT(FALSE); + // type map for each key must exist except private use + if (uprv_strcmp(legacyKeyId, "x0") != 0) { + U_ASSERT(FALSE); + } } else { LocalUResourceBundlePointer typeMapEntry;