[cairo] Changing %f to %g in cairo-output-stream.c?

Behdad Esfahbod behdad at behdad.org
Fri Oct 20 07:56:28 PDT 2006


On Fri, 2006-10-20 at 21:35 +0930, Adrian Johnson wrote:
> 
> cairo-output-stream.c reimplements printf to provide formatting of
> doubles that is independent of the current locale's decimal separator.
> The reimplementation only takes %f and always trims trailing zeros. 

Ah, I overlooked the final trimming.   I'll try to keep my wise 5am
words for myself :-).

-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"




More information about the cairo mailing list