summaryrefslogtreecommitdiff
path: root/libjava/java/text/MessageFormat.java
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>1999-09-22 04:41:26 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>1999-09-22 05:41:26 +0100
commit5ab00e275b539136f48c62b2363936e92d4272c0 (patch)
tree57703937fd6e5e454ca527734ee854ed01054636 /libjava/java/text/MessageFormat.java
parent00ec6daa3ca775bae5983d6df8d3085726f6c4b0 (diff)
MessageFormat.java (MessageFormat(String)): Set the default locale.
1999-09-16 Bryce McKinlay <bryce@albatross.co.nz> * java/text/MessageFormat.java (MessageFormat(String)): Set the default locale. * java/text/NumberFormat.java: Check that object is a Number. If not, throw IllegialArgumentException. From-SVN: r29574
Diffstat (limited to 'libjava/java/text/MessageFormat.java')
-rw-r--r--libjava/java/text/MessageFormat.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java
index 8b422357966..891a0c3e3d8 100644
--- a/libjava/java/text/MessageFormat.java
+++ b/libjava/java/text/MessageFormat.java
@@ -400,6 +400,7 @@ public class MessageFormat extends Format
public MessageFormat (String pattern)
{
+ locale = Locale.getDefault();
applyPattern (pattern);
}