jdk/test/sun/text/resources/LocaleDataTest.java
changeset 4600 d49895808acd
parent 891 8ef167bd8428
child 4604 7ba44857e8cd
--- a/jdk/test/sun/text/resources/LocaleDataTest.java	Sun Dec 06 22:18:07 2009 -0800
+++ b/jdk/test/sun/text/resources/LocaleDataTest.java	Tue Dec 08 21:14:04 2009 -0800
@@ -31,7 +31,7 @@
  *      5102005 5074431 6182685 6208712 6277020 6245766 6351682 6386647 6379382
  *      6414459 6455680 6498742 6558863 6488119 6547501 6497154 6558856 6481177
  *      6379214 6485516 6486607 4225362 4494727 6533691 6531591 6531593 6570259
- *      6509039
+ *      6509039 6609737 6610748 6645271 6507067
  * @summary Verify locale data
  *
  */
@@ -255,6 +255,15 @@
             index = key.length();
         resTag = key.substring(oldIndex, index);
 
+        // TimeZone name may have "/" in it, for example "Asia/Taipei", so use "Asia\/Taipei in LocaleData.
+        if(resTag.endsWith("\\")) {
+            resTag = resTag.substring(0, resTag.length() - 1);
+            oldIndex = index;
+            index = key.indexOf("/", oldIndex + 1);
+            if (index == -1) index = key.length();
+            resTag += key.substring(oldIndex, index);
+        }
+
         if (index < key.length() - 1)
             qualifier = key.substring(index + 1);
         else