morten 01/11/27 06:38:07
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Log:
A fix for decimal formatting
PR: bugzilla 4901
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.30 +4 -4
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
Index: BasisLibrary.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- BasisLibrary.java 2001/11/22 14:05:30 1.29
+++ BasisLibrary.java 2001/11/27 14:38:07 1.30
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: BasisLibrary.java,v 1.29 2001/11/22 14:05:30 morten Exp $
+ * @(#)$Id: BasisLibrary.java,v 1.30 2001/11/27 14:38:07 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -857,11 +857,11 @@
DecimalFormat formatter) {
try {
if (Double.isNaN(number))
- return("NaN");
+ return(formatter.getDecimalFormatSymbols().getNaN());
else if (number == Double.NEGATIVE_INFINITY)
- return("-Infinity");
+ return(formatter.getDecimalFormatSymbols().getInfinity());
else if (number == Double.POSITIVE_INFINITY)
- return("Infinity");
+ return(formatter.getDecimalFormatSymbols().getInfinity());
StringBuffer result = new StringBuffer();
formatter.applyLocalizedPattern(pattern);
formatter.format(number,result,_fieldPosition);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]