summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/text/DecimalFormatSymbols.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/text/DecimalFormatSymbols.java')
-rw-r--r--libjava/classpath/java/text/DecimalFormatSymbols.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/classpath/java/text/DecimalFormatSymbols.java b/libjava/classpath/java/text/DecimalFormatSymbols.java
index f87ebbf138f..b7edf39c45e 100644
--- a/libjava/classpath/java/text/DecimalFormatSymbols.java
+++ b/libjava/classpath/java/text/DecimalFormatSymbols.java
@@ -170,6 +170,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable
{
res = null;
}
+ locale = loc;
currency = Currency.getInstance("XXX");
currencySymbol = "?";
intlCurrencySymbol = "XXX";
@@ -204,7 +205,6 @@ public class DecimalFormatSymbols implements Cloneable, Serializable
percent = safeGetChar (res, "percent", '%');
perMill = safeGetChar (res, "perMill", '\u2030');
zeroDigit = safeGetChar (res, "zeroDigit", '0');
- locale = loc;
}
/**
@@ -430,7 +430,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable
public void setCurrency (Currency currency)
{
intlCurrencySymbol = currency.getCurrencyCode();
- currencySymbol = currency.getSymbol();
+ currencySymbol = currency.getSymbol(locale);
this.currency = currency;
}
OpenPOWER on IntegriCloud