ICU-3748 '=' must follow '@'

X-SVN-Rev: 15376
This commit is contained in:
Alan Liu 2004-05-18 20:07:05 +00:00
parent 8166be666f
commit cc9a806769

View File

@ -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);