ICU-2755 Fix for Solaris

X-SVN-Rev: 11816
This commit is contained in:
George Rhoten 2003-05-06 20:37:31 +00:00
parent 3df0b027d6
commit 97a32dd6b1

View File

@ -322,11 +322,12 @@ void CollationServiceTest::TestRegisterFactory(void)
UnicodeString locName = fu_FU.getName();
StringEnumeration* localeEnum = Collator::getAvailableLocales();
UBool found = FALSE;
for (const UnicodeString* loc = localeEnum->snext(status);
!found && loc != NULL;
loc = localeEnum->snext(status)) {
//
if (locName == *loc) {
const UnicodeString* locStr;
for (locStr = localeEnum->snext(status);
!found && locStr != NULL;
locStr = localeEnum->snext(status))
{
if (locName == *locStr) {
found = TRUE;
}
}