Enlightenment CVS committal Author : raster Project : e17 Module : libs/eet
Dir : e17/libs/eet/src/lib Modified Files: eet_data.c Log Message: solaris breakage - fix. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/eet/src/lib/eet_data.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- eet_data.c 26 May 2005 09:43:23 -0000 1.23 +++ eet_data.c 30 Jul 2005 09:09:31 -0000 1.24 @@ -336,6 +336,7 @@ eet_data_get_float(void *src, void *src_end, void *dst) { float *d; + float tf; char *s, *str, *p, *prev_locale; int len; @@ -350,7 +351,10 @@ str[len] = 0; prev_locale = setlocale(LC_NUMERIC, "C"); - *d = (float)atof(str); +/* solaris atof is broken and doesnt understand %a format as a float */ +/* *d = (float)atof(str); */ + sscanf(str, "%a", &tf); + *d = (float)tf; if (prev_locale) setlocale(LC_NUMERIC, prev_locale); free(str); @@ -380,7 +384,8 @@ static int eet_data_get_double(void *src, void *src_end, void *dst) { - double *d; + double *d, td; + float tf; char *s, *str, *p, *prev_locale; int len; @@ -395,7 +400,10 @@ str[len] = 0; prev_locale = setlocale(LC_NUMERIC, "C"); - *d = (double)atof(str); +/* solaris atof is broken and doesnt understand %a format as a float */ +/* *d = (double)atof(str); */ + sscanf(str, "%a", &tf); + *d = (double)tf; if (prev_locale) setlocale(LC_NUMERIC, prev_locale); free(str); ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs