[tomboy] Ensure the Json encoder uses the invariant locale when encoding floating
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Subject: [tomboy] Ensure the Json encoder uses the invariant locale when encoding floating
- Date: Thu, 18 Jun 2009 09:20:41 -0400 (EDT)
commit 4fb0e173592683690eba982edebec9184aabe730
Author: Anders Petersson <demitar worldforge org>
Date: Thu Jun 18 15:08:37 2009 +0200
Ensure the Json encoder uses the invariant locale when encoding floating
point numbers (some locales use a comma as the decimal point).
.../Addins/WebSyncService/Hyena.Json/Serializer.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/Addins/WebSyncService/Hyena.Json/Serializer.cs b/Tomboy/Addins/WebSyncService/Hyena.Json/Serializer.cs
index 24eb064..4eb781e 100644
--- a/Tomboy/Addins/WebSyncService/Hyena.Json/Serializer.cs
+++ b/Tomboy/Addins/WebSyncService/Hyena.Json/Serializer.cs
@@ -64,7 +64,7 @@ namespace Hyena.Json
private string SerializeDouble (double val)
{
- return val.ToString ();
+ return val.ToString (System.Globalization.CultureInfo.InvariantCulture.NumberFormat);
}
// TODO: exponent stuff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]