diff --git a/icu4j/main/classes/translit/src/com/ibm/icu/text/SourceTargetUtility.java b/icu4j/main/classes/translit/src/com/ibm/icu/text/SourceTargetUtility.java index 57890353c1..ac5f0ea021 100644 --- a/icu4j/main/classes/translit/src/com/ibm/icu/text/SourceTargetUtility.java +++ b/icu4j/main/classes/translit/src/com/ibm/icu/text/SourceTargetUtility.java @@ -20,7 +20,7 @@ class SourceTargetUtility { final UnicodeSet sourceCache; final Set sourceStrings; static final UnicodeSet NON_STARTERS = new UnicodeSet("[:^ccc=0:]").freeze(); - static Normalizer2 NFC = Normalizer2.getInstance(null, "NFC", Mode.COMPOSE); + static Normalizer2 NFC = Normalizer2.getInstance(null, "nfc", Mode.COMPOSE); //static final UnicodeSet TRAILING_COMBINING = new UnicodeSet(); public SourceTargetUtility(Transform transform) { @@ -32,7 +32,7 @@ class SourceTargetUtility { if (normalizer != null) { // synchronized (SourceTargetUtility.class) { // if (NFC == null) { -// NFC = Normalizer2.getInstance(null, "NFC", Mode.COMPOSE); +// NFC = Normalizer2.getInstance(null, "nfc", Mode.COMPOSE); // for (int i = 0; i <= 0x10FFFF; ++i) { // String d = NFC.getDecomposition(i); // if (d == null) { diff --git a/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java b/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java index bc1b6247ad..b21126de78 100644 --- a/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java +++ b/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java @@ -3016,9 +3016,9 @@ public class TransliteratorTest extends TestFmwk { public void TestSourceTargetSet2() { - Normalizer2 nfkd = Normalizer2.getInstance(null, "NFKC", Mode.DECOMPOSE); - Normalizer2 nfc = Normalizer2.getInstance(null, "NFC", Mode.COMPOSE); - Normalizer2 nfd = Normalizer2.getInstance(null, "NFC", Mode.DECOMPOSE); + Normalizer2 nfkd = Normalizer2.getInstance(null, "nfkc", Mode.DECOMPOSE); + Normalizer2 nfc = Normalizer2.getInstance(null, "nfc", Mode.COMPOSE); + Normalizer2 nfd = Normalizer2.getInstance(null, "nfc", Mode.DECOMPOSE); // UnicodeSet nfkdSource = new UnicodeSet(); // UnicodeSet nfkdTarget = new UnicodeSet(); // for (int i = 0; i <= 0x10FFFF; ++i) {