[babl] babl.db: do not use strtod - it is locale dependent
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl.db: do not use strtod - it is locale dependent
- Date: Mon, 14 Nov 2016 23:34:05 +0000 (UTC)
commit b1c32ad193e53494ca03601363c6eddaa577d4e7
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Nov 15 00:33:41 2016 +0100
babl.db: do not use strtod - it is locale dependent
babl/babl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/babl/babl.c b/babl/babl.c
index 7209c8f..b91b3ac 100644
--- a/babl/babl.c
+++ b/babl/babl.c
@@ -334,11 +334,11 @@ static void babl_init_db (const char *path)
{
if (!strncmp (token2, "error=", 6))
{
- babl->fish.error = strtod (token2 + 6, NULL);
+ babl->fish.error = babl_parse_double (token2 + 6);
}
else if (!strncmp (token2, "cost=", 5))
{
- babl->fish_path.cost = strtod (token2 + 5, NULL);
+ babl->fish_path.cost = babl_parse_double (token2 + 5);
}
else if (!strncmp (token2, "pixels=", 7))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]