David Neary <[EMAIL PROTECTED]> writes:
> <snip routine>
> Really? In 1.2, it appears to be this...
> fprintf (file, "%d\n", num_segments);
> for (seg = grad->segments; seg; seg = seg->next)
> fprintf (file, "%f %f %f %f %f %f %f %f %f %f %f %d %d\n",
> seg->left, seg->middle, seg->right,
> seg->r0, seg->g0, seg->b0, seg->a0,
> seg->r1, seg->g1, seg->b1, seg->a1,
> (int) seg->type, (int) seg->color);
> Why the huge change?
because the string representaion of doubles and floats is
locale-dependent. In GIMP-1.2 we had to explicitely set LC_NUMERIC to
C to make it work. Since this is a bad idea we changed to the
locale-indenpendent g_ascii_formatd() / g_ascii_dtostr() in GIMP-1.3.
You might have noticed that numbers are displayed with the
digits-seperator specified by your locale in GIMP-1.3 while in
GIMP-1.2 it's always '.' as defined the C locale.
Gimp-developer mailing list