]> granicus.if.org Git - icu/commitdiff
ICU-12456 Integrate early CLDR 30 data for ICU4J 58m1
authorPeter Edberg <pedberg@unicode.org>
Thu, 30 Jun 2016 18:32:56 +0000 (18:32 +0000)
committerPeter Edberg <pedberg@unicode.org>
Thu, 30 Jun 2016 18:32:56 +0000 (18:32 +0000)
X-SVN-Rev: 38897

icu4j/main/shared/data/icudata.jar
icu4j/main/shared/data/icutzdata.jar
icu4j/main/shared/data/testdata.jar
icu4j/main/tests/core/src/com/ibm/icu/dev/data/numberformattestspecification.txt
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/NumberFormatTest.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestLocaleValidity.java

index fd0889cce53da712e519dff62cd84ba2506b2f6c..25a7180d2ed2a0cfb487c134cf330cfd1db5d5c8 100755 (executable)
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:b882f018fe19d1d295817d91b5a99f1eb7a01d08e538adf83a6253e981ce95f5
-size 11732712
+oid sha256:049d2957a634b35ba8a909379b6fcd990f15c7cc4750934f17030b437f69613b
+size 11770699
index e4c6cbd3cacaaddf003a893670d2ef9617b183a9..0dd8f1a78625d8b0fae6ad390b9d49cc85c0960c 100755 (executable)
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:655595cc446eaa3a49429da0d4963e9f6f94ad1d98512063ea0cdf913c35d12f
+oid sha256:121c44d13ccc2af834b27b19e539d37e4e396da009799f373912c4f630d4a810
 size 91644
index 2fc08106ca77262f31fcabf214f17e2edb48fe86..d89e292e678246f3c4fc69783c36cf9ad7eb8cc9 100755 (executable)
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:eec13ca8824524c72ee5d3f18ed9b2964ffde0c07c4238ae305ccc7ebc5fd784
-size 811414
+oid sha256:cd9313c59d996fd80ccf3085baa5a17b8ecf2a4a962afc1ab4cf1c6528287f93
+size 811718
index 024047a98597a012e5e44a45763be724a63e7a54..930b04ed34ea667d596d11c15fbdf0e6f7732996 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 // Copyright (C) 2015-2016, International Business Machines
 // Corporation and others.  All Rights Reserved.
 //
@@ -202,7 +204,7 @@ begin
 format output  breaks
 // min grouping digits not supported in any existing implementation
 // but could be easily added to the new DecimalFormat C code.
-1000   1000    CJK
+1000   1000    JK
 10000  10,000
 100000 100,000
 1000000        1,000,000
@@ -359,7 +361,7 @@ output      grouping        breaks  grouping2       minGroupingDigits
 1,23,45,6789   4       K       2
 1,23,45,6789   4       K       2       2
 123,456789     6       K       6       3
-123456789      6       CJK     6       4
+123456789      6       JK      6       4
 
 test multiplier setters
 set locale en_US
@@ -531,12 +533,14 @@ NaN       afterPrefix         NaN K
 NaN    beforeSuffix    NaN     K
 NaN    afterSuffix     NaN     K
 
-test apply localized patterns
+test apply formerly localized patterns
 begin
-locale localizedPattern        format  output  breaks
-en     0%      0.4376  44%
+// documentation says localizedPattern is not supported, change to pattern
+locale pattern format  output  breaks
+en     #0%     0.4376  44%
 // This next test breaks JDK. JDK doesn't multiply by 100.
-fa     \u06f0\u066a    0.4376  \u06f4\u06f4\u066a      K
+// It also is now broken in ICU4J until #10368 is fixed.
+fa     \u0025\u00a0\u0023\u0030        0.4376  \u200e\u066a\u00a0\u06f4\u06f4  JK
 
 test toPattern
 set locale en
index 3ec62190c519799eb4974c9890d0c2d5528452a7..8f36372b8ce0889e1a2d7b3f018bd9c9d7dcfdcc 100644 (file)
@@ -1061,9 +1061,9 @@ public class NumberFormatTest extends TestFmwk {
                 // test locale without currency information 
                 {"root", "-1.23", "USD", "-US$ 1.23", "-USD 1.23", "-1.23 USD"}, 
                 {"root@numbers=latn", "-1.23", "USD", "-US$ 1.23", "-USD 1.23", "-1.23 USD"}, // ensure that the root locale is still used with modifiers 
-                {"root@numbers=arab", "-1.23", "USD", "\u200F-US$ ١٫٢٣", "\u200F-USD ١٫٢٣", "\u200F-١٫٢٣ USD"}, // ensure that the root locale is still used with modifiers 
+                {"root@numbers=arab", "-1.23", "USD", "\u200F-\u0661\u066B\u0662\u0663\u00A0US$", "\u200F-\u0661\u066B\u0662\u0663\u00A0USD", "\u200F-\u0661\u066B\u0662\u0663 USD"}, // ensure that the root locale is still used with modifiers
                 {"es_AR", "1", "INR", "INR\u00A01,00", "INR\u00A01,00", "1,00 rupia india"}, 
-                {"ar_EG", "1", "USD", "US$ ١٫٠٠", "USD ١٫٠٠", "١٫٠٠ دولار أمريكي"}, 
+                {"ar_EG", "1", "USD", "١٫٠٠\u00A0US$", "١٫٠٠\u00A0USD", "١٫٠٠ دولار أمريكي"}, 
         };
 
         for (int i=0; i<DATA.length; ++i) {
@@ -1091,7 +1091,7 @@ public class NumberFormatTest extends TestFmwk {
                 // using 'k' currency style.
                 String formatResult = DATA[i][resultDataIndex];
                 if (!strBuf.equals(formatResult)) {
-                    errln("FAIL: Expected " + formatResult + " actual: " + strBuf);
+                    errln("FAIL: localeID: " + localeString + ", expected(" + formatResult.length() + "): \"" + formatResult + "\", actual(" + strBuf.length() + "): \"" + strBuf + "\"");
                 }
                 try {
                     // test parsing, and test parsing for all currency formats.
@@ -1193,7 +1193,7 @@ public class NumberFormatTest extends TestFmwk {
                 new ParseCurrencyItem( "en_GB", "euros4",   "4,00\u00A0\u20AC", 0,  0,  0,  0,  ""    ),
                 new ParseCurrencyItem( "en_GB", "euros6",   "6\u00A0\u20AC",    0,  0,  0,  0,  ""    ),
                 new ParseCurrencyItem( "en_GB", "euros8",   "\u20AC8",          0,  0,  2,  8,  "EUR" ),
-                new ParseCurrencyItem( "en_GB", "dollars4", "$4",               0,  0,  2,  4,  "USD" ),
+                new ParseCurrencyItem( "en_GB", "dollars4", "US$4",             0,  0,  4,  4,  "USD" ),
 
                 new ParseCurrencyItem( "fr_FR", "euros4",   "4,00\u00A0\u20AC", 6,  4,  6,  4,  "EUR" ),
                 new ParseCurrencyItem( "fr_FR", "euros6",   "6\u00A0\u20AC",    3,  6,  3,  6,  "EUR" ),
index d6dee6d1b7347d1d71951440cd0f03875258e893..e90886898b1704f9fdd9f65ea7bdb2d8ef4397a8 100644 (file)
@@ -237,6 +237,8 @@ public class TestLocaleValidity extends TestFmwk {
         int count = 0;
         LocaleValidityChecker localeValidityChecker = new LocaleValidityChecker(datasubtypes);
         for (String[] test : tests) {
+            if (test[1].endsWith("-va-posix") && logKnownIssue("12615","Validity check wrong for -va-posix?"))
+                continue;
             check(++count, localeValidityChecker, test[0], test[1], keys);
         }
     }