From cc9a8067696034aec19720b07622236575af463e Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Tue, 18 May 2004 20:07:05 +0000 Subject: [PATCH] ICU-3748 '=' must follow '@' X-SVN-Rev: 15376 --- icu4c/source/common/locid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/common/locid.cpp b/icu4c/source/common/locid.cpp index 502293e0f71..99214599a07 100644 --- a/icu4c/source/common/locid.cpp +++ b/icu4c/source/common/locid.cpp @@ -1278,7 +1278,7 @@ Locale::createKeywords(UErrorCode &status) const const char* variantStart = uprv_strchr(fullName, '@'); const char* assignment = uprv_strchr(fullName, '='); if(variantStart) { - if(assignment) { + if(assignment > variantStart) { int32_t keyLen = locale_getKeywords(variantStart+1, '@', keywords, keywordCapacity, NULL, 0, NULL, FALSE, &status); if(keyLen) { result = new KeywordEnumeration(keywords, keyLen, 0, status);