[vala] Use locale-independent formatting in CodeNode.set_attribute_double



commit 73bbee708bc1bd8c8e991ddd165d386db6c52676
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Aug 11 21:47:15 2011 +0200

    Use locale-independent formatting in CodeNode.set_attribute_double

 vala/valacodenode.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valacodenode.vala b/vala/valacodenode.vala
index c3d6429..3872a46 100644
--- a/vala/valacodenode.vala
+++ b/vala/valacodenode.vala
@@ -315,7 +315,7 @@ public abstract class Vala.CodeNode {
 			a = new Attribute (attribute, source_reference);
 			attributes.append (a);
 		}
-		a.add_argument (argument, "%g".printf (value));
+		a.add_argument (argument, value.format (new char[double.DTOSTR_BUF_SIZE]));
 	}
 
 	/**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]