material-arbfp: Use locale-independent double to string conversion
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 16 Jul 2010 22:37:59 +0000 (23:37 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 16 Jul 2010 22:40:34 +0000 (23:40 +0100)
commit6983429e4a937d6c64beb427b137290e16db4527
tree7889d5c2ad1fa14e3e1507047d78928776c9061c
parent6f220399ae862f49f3f2aa54ec6681e159f0a934
material-arbfp: Use locale-independent double to string conversion

The ARBfp programs are created with a printf() wrapper, which usually
fails in non-en locales as soon as you start throwing things like
floating point values in the mix.

We should use the g_ascii_dtostr() function which places a double into a
string buffer in a locale-independent way.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2219
clutter/cogl/cogl/cogl-material-arbfp.c