[hyena] Use invariant locale to serialize floats
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Use invariant locale to serialize floats
- Date: Wed, 26 May 2010 02:35:01 +0000 (UTC)
commit 8c607a0d865909b7b0e4ca85ee950854d81d1d98
Author: Anders Petersson <demitar worldforge org>
Date: Thu Feb 18 16:06:45 2010 -0800
Use invariant locale to serialize floats
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
src/Hyena/Hyena.Json/Serializer.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Hyena/Hyena.Json/Serializer.cs b/src/Hyena/Hyena.Json/Serializer.cs
index 24eb064..4eb781e 100644
--- a/src/Hyena/Hyena.Json/Serializer.cs
+++ b/src/Hyena/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]