ICU-22534 BRS#27 fix CI-Exhaustive-Main breakage for locale qaa

This commit is contained in:
Craig 2024-03-06 16:42:58 -08:00 committed by Fredrik Roubert
parent e0a711c0a4
commit 89cf56333f

View file

@ -5646,6 +5646,14 @@ public:
}
};
bool isKnownSourceForCLDR17099(const std::string& s) {
if (s.compare("qaa-Cyrl-CH") == 0) {
return true;
}
return false;
}
void U_CALLCONV
testLikelySubtagsLineFn(void *context,
char *fields[][2], int32_t fieldCount,
@ -5656,6 +5664,9 @@ testLikelySubtagsLineFn(void *context,
(void)fieldCount;
LocaleTest* THIS = (LocaleTest*)context;
std::string source(trim(std::string(fields[0][0], fields[0][1]-fields[0][0])));
if (isKnownSourceForCLDR17099(source) && THIS->logKnownIssue("CLDR-17099", "likelySubtags.txt wrong for qaa-Cyrl-CH")) {
return;
}
std::string addLikely(trim(std::string(fields[1][0], fields[1][1]-fields[1][0])));
std::string removeFavorScript(trim(std::string(fields[2][0], fields[2][1]-fields[2][0])));
if (removeFavorScript.length() == 0) {