diff options
author | Rayhaan Jaufeerally <rayhaan@google.com> | 2015-09-16 09:43:28 +0100 |
---|---|---|
committer | Fredrik Roubert <roubert@google.com> | 2017-07-06 14:59:41 +0200 |
commit | 08f518a27e629870d988040c0b217670ff26e7bb (patch) | |
tree | 2a31a281eadfd9e86b6046cc7784823791847696 /icu4j/main/classes | |
parent | 5df9355e0139a42f1d5545b5dfd1b2f52c494882 (diff) | |
download | icu-08f518a27e629870d988040c0b217670ff26e7bb.tar.gz |
Android patch: Ticket #11903: ICU DecimalFormatSymbols#setZeroDigit does not work as expected
This is a temporary workaround until the issue has been fixed upstream:
http://bugs.icu-project.org/trac/ticket/11903
(cherry picked from commit 7db984fc8284426731865fadc13d5e5783507046)
Change-Id: I281d73d4605c6e60e92753dc83e717950c1b1a59
Diffstat (limited to 'icu4j/main/classes')
-rw-r--r-- | icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormatSymbols.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormatSymbols.java b/icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormatSymbols.java index 07e812bcd..b123f2ef5 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormatSymbols.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormatSymbols.java @@ -205,16 +205,13 @@ public class DecimalFormatSymbols implements Cloneable, Serializable { digitStrings[0] = String.valueOf(zeroDigit); digits[0] = zeroDigit; - // Propagate digit 1 - 9 only when the input zeroDigit is a - // Unicode number and its integer value is 0. - - if (Character.digit(zeroDigit, 10) == 0) { + // Android patch (ticket #11903) begin. for (int i = 1; i < 10; i++) { char d = (char)(zeroDigit + i); digitStrings[i] = String.valueOf(d); digits[i] = d; } - } + // Android patch (ticket #11903) end. } /** |