8037111: space before percent is inconsistent between sv and sv_SE
8081643: wrong number format for Serbian locale with Latin script
Reviewed-by: naoto
Contributed-by: li.jiang@oracle.com
--- a/jdk/src/jdk.localedata/share/classes/sun/text/resources/ext/FormatData_sr_Latn.java Mon Dec 05 19:06:55 2016 -0800
+++ b/jdk/src/jdk.localedata/share/classes/sun/text/resources/ext/FormatData_sr_Latn.java Tue Nov 29 21:58:29 2016 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -167,8 +167,8 @@
},
{ "NumberElements",
new String[] {
+ ",",
".",
- ",",
";",
"%",
"0",
--- a/jdk/src/jdk.localedata/share/classes/sun/text/resources/ext/FormatData_sv.java Mon Dec 05 19:06:55 2016 -0800
+++ b/jdk/src/jdk.localedata/share/classes/sun/text/resources/ext/FormatData_sv.java Tue Nov 29 21:58:29 2016 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -270,6 +270,13 @@
"e",
}
},
+ { "NumberPatterns",
+ new String[] {
+ "#,##0.###;-#,##0.###", // decimal pattern
+ "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern
+ "#,##0 %" // percent pattern
+ }
+ },
{ "NumberElements",
new String[] {
",", // decimal separator
--- a/jdk/test/sun/text/resources/LocaleData Mon Dec 05 19:06:55 2016 -0800
+++ b/jdk/test/sun/text/resources/LocaleData Tue Nov 29 21:58:29 2016 -0800
@@ -8293,3 +8293,9 @@
# bug #8145952
CurrencyNames//byn=Belarusian Ruble
CurrencyNames/be_BY/BYN=\u0420\u0443\u0431
+
+# bug #8037111
+FormatData/sv/NumberPatterns/2=#,##0 %
+# bug #8081643
+FormatData/sr-Latin/NumberElements/0=,
+FormatData/sr-Latin/NumberElements/1=.
--- a/jdk/test/sun/text/resources/LocaleDataTest.java Mon Dec 05 19:06:55 2016 -0800
+++ b/jdk/test/sun/text/resources/LocaleDataTest.java Tue Nov 29 21:58:29 2016 -0800
@@ -37,7 +37,7 @@
* 7003124 7085757 7028073 7171028 7189611 8000983 7195759 8004489 8006509
* 7114053 7074882 7040556 8008577 8013836 8021121 6192407 6931564 8027695
* 8017142 8037343 8055222 8042126 8074791 8075173 8080774 8129361 8134916
- * 8145136 8145952 8164784
+ * 8145136 8145952 8164784 8037111 8081643
* @summary Verify locale data
* @modules java.base/sun.util.resources
* @modules jdk.localedata