[grisbi-cvs] grisbi/src gsb_real.c,1.65,1.66
Gunee
guneemwelloeux at users.sourceforge.net
Sun Jan 24 00:33:59 CET 2010
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23344
Modified Files:
gsb_real.c
Log Message:
Fixed decimal symbol problems when reading number from file (at gsb file opening)
Index: gsb_real.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_real.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- gsb_real.c 18 Jan 2010 19:13:40 -0000 1.65
+++ gsb_real.c 23 Jan 2010 23:33:57 -0000 1.66
@@ -484,7 +484,7 @@
//~ printf ("result.mantissa = %ld result.exponent = %d\n", result.mantissa, result.exponent);
return result;
}
- else if ( strchr ( ".", *p ) )
+ else if ( strchr ( ".", *p ) || strchr (",", *p ) )
{
if ( dot_position >= 0 ) // already found a decimal separator
return error_real;
More information about the cvs
mailing list