[dia] chonogram - be tolerant against locale dependent data
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] chonogram - be tolerant against locale dependent data
- Date: Sun, 22 Aug 2010 18:47:57 +0000 (UTC)
commit 01e3abe7c699988df152ac7cd3c1f77da279cf97
Author: Hans Breuer <hans breuer org>
Date: Sun Aug 22 16:39:16 2010 +0200
chonogram - be tolerant against locale dependent data
objects/chronogram/chronoline_event.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/objects/chronogram/chronoline_event.c b/objects/chronogram/chronoline_event.c
index 1e5039e..e017e6f 100644
--- a/objects/chronogram/chronoline_event.c
+++ b/objects/chronogram/chronoline_event.c
@@ -178,7 +178,8 @@ parse_clevent(const gchar *events, real rise, real fall)
return clel;
}
} else { /* waitfor == LENGTH */
- dt = strtod(p,(char **)&p1);
+ /* using g_strtod to support loacle and "C" formatted numbers */
+ dt = g_strtod(p,(char **)&p1);
if (p1 == p) {
/* We were ready for a length argument, we got nothing.
Maybe the user entered a zero-length argument ? */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]