diff options
Diffstat (limited to 'mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonSerializer.cs')
-rw-r--r-- | mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonSerializer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonSerializer.cs b/mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonSerializer.cs index 42d59afb18e..595727220ee 100644 --- a/mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonSerializer.cs +++ b/mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonSerializer.cs @@ -431,12 +431,12 @@ namespace System.Web.Script.Serialization void WriteValue (StringBuilder output, float value) { - StringBuilderExtensions.AppendCount (output, maxJsonLength, value.ToString ("r")); + StringBuilderExtensions.AppendCount (output, maxJsonLength, value.ToString ("r", CultureInfo.InvariantCulture)); } void WriteValue (StringBuilder output, double value) { - StringBuilderExtensions.AppendCount (output, maxJsonLength, value.ToString ("r")); + StringBuilderExtensions.AppendCount (output, maxJsonLength, value.ToString ("r", CultureInfo.InvariantCulture)); } void WriteValue (StringBuilder output, Guid value) |