Re: [Tuxpaint-devel] Printing problems was glibc detected ... double free or corruption
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Ben A. <sy...@sa...> - 2007-07-05 11:51:32
|
On Mon, 2 Jul 2007 11:11:43 -0700 Bill Kendrick <nb...@so...> wrote: > Ouch! So fprintf() is getting localized. I guess we should > replace the %.2f's in there with our own (maybe %d.%d and then do > some int math on the scale and translate values) Why not write a C macro to wrap the problematic fprintf()s to change to "C" locale and back again via setlocale? Ben -- ,-. nSLUG http://www.nslug.ns.ca sy...@sa... \`' Debian http://www.debian.org sy...@de... ` [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27 13C8 ] [ pgp 7F DA 09 4B BA 2C 0D E0 1B B1 31 ED C6 A9 39 4F ] |