[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_96-2-g749d7eb

Pierre Biava nobody at users.sourceforge.net
Mon Dec 13 20:06:50 CET 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  749d7ebd803b7b39e5fb0579db726631e5494100 (commit)
      from  22b49c76c7783e358695f440b621cc04ea3c975c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 749d7ebd803b7b39e5fb0579db726631e5494100
Author: pbiava <pierre.biava at nerim.net>
Date:   Mon Dec 13 19:57:00 2010 +0100

    Fixes permanently I hope the management of point as thousands separator

-----------------------------------------------------------------------

Changes:
diff --git a/src/utils_str.c b/src/utils_str.c
index bf9b3f3..c4d05cd 100644
--- a/src/utils_str.c
+++ b/src/utils_str.c
@@ -953,6 +953,20 @@ gdouble utils_str_strtod ( const gchar *str_number, gchar **endptr )
             str_number = my_strdelimit ( str_number, ",", "" );
         }
     }
+    else
+    {
+        gchar *mon_thousands_sep;
+
+        mon_thousands_sep = gsb_real_get_thousands_sep ( );
+        if ( mon_thousands_sep
+         &&
+         g_strstr_len ( str_number, -1, mon_thousands_sep ) )
+        {
+            str_number = my_strdelimit ( str_number, mon_thousands_sep, "" );
+        }
+        if ( mon_thousands_sep )
+            g_free ( mon_thousands_sep );
+    }
 
     number = g_ascii_strtod ( str_number, endptr);
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list