From c123e806f740cdd346fef1a27679265a961594da Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Wed, 3 Feb 2016 21:39:38 +0000 Subject: [PATCH] ICU-12091 Ignore BCP 47 -t- style transliterator IDs. The support for such -t- IDs will be done by #12077 later. X-SVN-Rev: 38255 --- icu4c/source/i18n/translit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/icu4c/source/i18n/translit.cpp b/icu4c/source/i18n/translit.cpp index 9e28ea9d7bc..cd7b0f7789c 100644 --- a/icu4c/source/i18n/translit.cpp +++ b/icu4c/source/i18n/translit.cpp @@ -1,6 +1,6 @@ /* ********************************************************************** - * Copyright (C) 1999-2014, International Business Machines + * Copyright (C) 1999-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Date Name Description @@ -1509,6 +1509,9 @@ UBool Transliterator::initializeRegistry(UErrorCode &status) { colBund = ures_getByIndex(transIDs, row, 0, &status); if (U_SUCCESS(status)) { UnicodeString id(ures_getKey(colBund), -1, US_INV); + if(id.indexOf(UnicodeString("-t-")) != -1) { + continue; + } UResourceBundle* res = ures_getNextResource(colBund, NULL, &status); const char* typeStr = ures_getKey(res); UChar type; -- 2.40.0