funny behaviour gtk+python

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Oct 5 07:24:33 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 04 Oct 2007 at 21:43:07 -1000, Mitch Bradley wrote:
> Victor Lazzarini wrote:
> > yes, it's true, but at the moment, I can't
> > see a substitute for strtod(), and we can't
> > put a dependency on gtk or Python in the Csound
> > engine. I can't find an ascii_strtod(). Would
> > it work if we added a call to setlocale() just
> > before the call to strtod()?
> >   
> Perhaps you could just crib the strtod() routine from diet libc.
> 
> http://www.fefe.de/dietlibc/

You should probably adapt the one from glibc or GLib instead (I believe
the GLib implementation is adapted from glibc's strtod()), since they're LGPL
like Csound, while dietlibc appears to be GPL. PyOS_AsciiStrtod was copied
from GLib and relicensed by explicit permission from the author.

	Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net

iD8DBQFHBh7xWSc8zVUw7HYRApjuAKCyi+BRqt+cMTmQ4gLCvg9GF6UlaACg2PKc
b+0sgBTBE04p80yrb9G+7ZE=
=TL0A
-----END PGP SIGNATURE-----



More information about the Devel mailing list