[ICU-5234] Fix a bug with year checking.

X-SVN-Rev: 19943
diff --git a/charset/source/ucmtools/rptp2ucm.c b/charset/source/ucmtools/rptp2ucm.c
index c873176..60e905f 100644
--- a/charset/source/ucmtools/rptp2ucm.c
+++ b/charset/source/ucmtools/rptp2ucm.c
@@ -622,11 +622,13 @@
                 continue;
             }
 
-            s=uprv_strstr(line, "Updated      :");
-            if(s!=NULL) {
+            s=uprv_strstr(line, "Updated");
+            if(s!=NULL && uprv_strstr(s, ":") != NULL) {
                 int len = uprv_strlen(s);
-                while (s[len] != '(') {
-                    len--;
+                if (uprv_strstr(s, "(")) {
+                    while (s[len] != '(') {
+                        len--;
+                    }
                 }
                 while (!isdigit(s[len-1])) {
                     len--;