Author: atsushi
Date: 2008-02-12 03:38:54 -0500 (Tue, 12 Feb 2008)
New Revision: 95479
Modified:
trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog
trunk/mcs/class/System.XML/System.Xml.XPath/DefaultContext.cs
Log:
2008-02-12 Atsushi Enomoto <[EMAIL PROTECTED]>
* DefaultContext.cs : now number formatting for "R" works fine, so
just use it (and remove conditional compilation for TARGET_JVM).
Modified: trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog 2008-02-12
03:27:03 UTC (rev 95478)
+++ trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog 2008-02-12
08:38:54 UTC (rev 95479)
@@ -1,3 +1,8 @@
+2008-02-12 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * DefaultContext.cs : now number formatting for "R" works fine, so
+ just use it (and remove conditional compilation for TARGET_JVM).
+
2008-01-10 Konstantin Triger <[EMAIL PROTECTED]>
* Iterator.cs: prevent endless recursion in AncestorIterator
Modified: trunk/mcs/class/System.XML/System.Xml.XPath/DefaultContext.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.XPath/DefaultContext.cs
2008-02-12 03:27:03 UTC (rev 95478)
+++ trunk/mcs/class/System.XML/System.Xml.XPath/DefaultContext.cs
2008-02-12 08:38:54 UTC (rev 95479)
@@ -115,15 +115,7 @@
return "-Infinity";
if (d == Double.PositiveInfinity)
return "Infinity";
- // FIXME:
- // Return string in roundtrip format (currently it
- // rather breaks things, so we don't use it until
- // System.Double gets fixed.)
-#if TARGET_JVM
- return d.ToString ("R",
System.Globalization.NumberFormatInfo.InvariantInfo);
-#else
- return ((double) d).ToString
(System.Globalization.NumberFormatInfo.InvariantInfo);
-#endif
+ return d.ToString ("R", NumberFormatInfo.InvariantInfo);
}
public static double ToNumber (object arg)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches