From 997d0b87510ddc97e0d4367754ef4c792cb7d634 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Fri, 9 Aug 2002 21:31:01 +0000 Subject: [PATCH] ICU-2091 propagate local error codes even less X-SVN-Rev: 9658 --- icu4c/source/common/upropset.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/icu4c/source/common/upropset.cpp b/icu4c/source/common/upropset.cpp index c3a8e94142..c5f2374958 100644 --- a/icu4c/source/common/upropset.cpp +++ b/icu4c/source/common/upropset.cpp @@ -347,18 +347,21 @@ UnicodeSet* UnicodePropertySet::createFromPattern(const UnicodeString& pattern, UnicodeString shortName = munge(pattern, pos, close); // Do not propagate error codes from just not finding the name. - UErrorCode localErrorCode = U_ZERO_ERROR; + UErrorCode localErrorCode; // First try general category + localErrorCode = U_ZERO_ERROR; set = createCategorySet(shortName, localErrorCode); // If this fails, try script if (set == NULL) { + localErrorCode = U_ZERO_ERROR; set = createScriptSet(shortName, localErrorCode); } // If this fails, try binary property if (set == NULL) { + localErrorCode = U_ZERO_ERROR; set = createBinaryPropertySet(shortName, localErrorCode); } }