changeset 4864:60dd940eb58e

7003124: In Bulgarian Locale DateFormat is wrong Reviewed-by: naoto, peytoia
author yhuang
date Mon, 12 Dec 2011 18:21:42 -0800
parents 00e2c88e2234
children cd03cd0e0965
files src/share/classes/sun/text/resources/FormatData_bg.java test/sun/text/resources/LocaleData test/sun/text/resources/LocaleDataTest.java
diffstat 3 files changed, 18 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/text/resources/FormatData_bg.java	Thu Nov 17 10:46:02 2011 -0800
+++ b/src/share/classes/sun/text/resources/FormatData_bg.java	Mon Dec 12 18:21:42 2011 -0800
@@ -130,16 +130,16 @@
             },
             { "DateTimePatterns",
                 new String[] {
-                    "HH:mm:ss z", // full time pattern
+                    "HH:mm:ss zzzz", // full time pattern
                     "HH:mm:ss z", // long time pattern
-                    "H:mm:ss", // medium time pattern
-                    "H:mm", // short time pattern
-                    "EEEE, yyyy, MMMM d", // full date pattern
-                    "EEEE, yyyy, MMMM d", // long date pattern
-                    "yyyy-M-d", // medium date pattern
-                    "yy-M-d", // short date pattern
+                    "HH:mm:ss", // medium time pattern
+                    "HH:mm", // short time pattern
+                    "dd MMMM y, EEEE", // full date pattern
+                    "dd MMMM y", // long date pattern
+                    "dd.MM.yyyy", // medium date pattern
+                    "dd.MM.yy", // short date pattern
                     "{1} {0}" // date-time pattern
-                }
+                             }
             },
             { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" },
         };
--- a/test/sun/text/resources/LocaleData	Thu Nov 17 10:46:02 2011 -0800
+++ b/test/sun/text/resources/LocaleData	Mon Dec 12 18:21:42 2011 -0800
@@ -7010,3 +7010,12 @@
 # bug 7101495
 CalendarData/lv/firstDayOfWeek=2
 CalendarData/lv/minimalDaysInFirstWeek=4
+
+# bug 7003124
+FormatData/bg/DateTimePatterns/0=HH:mm:ss zzzz
+FormatData/bg/DateTimePatterns/2=HH:mm:ss
+FormatData/bg/DateTimePatterns/3=HH:mm
+FormatData/bg/DateTimePatterns/4=dd MMMM y, EEEE
+FormatData/bg/DateTimePatterns/5=dd MMMM y
+FormatData/bg/DateTimePatterns/6=dd.MM.yyyy
+FormatData/bg/DateTimePatterns/7=dd.MM.yy
--- a/test/sun/text/resources/LocaleDataTest.java	Thu Nov 17 10:46:02 2011 -0800
+++ b/test/sun/text/resources/LocaleDataTest.java	Mon Dec 12 18:21:42 2011 -0800
@@ -34,6 +34,7 @@
  *      6509039 6609737 6610748 6645271 6507067 6873931 6450945 6645268 6646611
  *      6645405 6650730 6910489 6573250 6870908 6585666 6716626 6914413 6916787
  *      6919624 6998391 7019267 7020960 7025837 7020583 7036905 7066203 7101495
+ *      7003124
  * @summary Verify locale data
  *
  */