https://bugzilla.novell.com/show_bug.cgi?id=320424

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=320424#c1


Brannon King <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]




--- Comment #1 from Brannon King <[EMAIL PROTECTED]>  2008-05-15 11:43:41 MST 
---
This bug is way easy to fix. Please, somebody with authority to check this into
the trunk, do so immediately.

Change XmlConvert.cs lines 

public static string ToString(double value)
{
        if (Double.IsNegativeInfinity(value)) return "-INF";
        if (Double.IsPositiveInfinity(value)) return "INF";
        if (Double.IsNaN(value)) return "NaN";
        return value.ToString(CultureInfo.InvariantCulture);
}

public static string ToString(float value)
{
        if (Single.IsNegativeInfinity(value)) return "-INF";
        if (Single.IsPositiveInfinity(value)) return "INF";
        if (Single.IsNaN(value)) return "NaN";
        return value.ToString(CultureInfo.InvariantCulture);
}

to read (note the "R"):

public static string ToString(double value)
{
        if (Double.IsNegativeInfinity(value)) return "-INF";
        if (Double.IsPositiveInfinity(value)) return "INF";
        if (Double.IsNaN(value)) return "NaN";
        return value.ToString("R", CultureInfo.InvariantCulture);
}

public static string ToString(float value)
{
        if (Single.IsNegativeInfinity(value)) return "-INF";
        if (Single.IsPositiveInfinity(value)) return "INF";
        if (Single.IsNaN(value)) return "NaN";
        return value.ToString("R", CultureInfo.InvariantCulture);
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to