-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry, didn't send my reply to both the mailing lists. Replying to myself to preserve the cross-posting.
On Thu, 04 Oct 2007 at 14:44:08 +0100, Simon McVittie wrote: > On Thu, 04 Oct 2007 at 14:23:58 +0100, Victor Lazzarini wrote: > > Just to add a little to say that this particular csound error is > > issued when there is an incorrect numeric format, say > > 11.B or 11.1A. In here, if I only use integers, there is > > no error, but all decimals are raising the error. Here's the > > Csound code fragment that issues the error: > ... > > tmpVal = (MYFLT) strtod(s, &tmp); > > strtod() respects the process' locale settings. Importing gtk probably > pulls in the locale settings from the environment and sets them as the > process-wide locale (see setlocale(3)). > > GLib has a function g_ascii_strtod(), and Python has PyOS_ascii_strtod > (which is actually the same function). csound ought to be using something > equivalent to this to parse locale-independent decimals, rather than > using the C library's strtod(). > > See http://www.python.org/dev/peps/pep-0331/ for more details. > > Simon -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net iD8DBQFHBO76WSc8zVUw7HYRAo9QAKDQTOgMxUF1v6idnj51nHr7ek3xAgCg5OLj QlEtQT1TYSccWjnM+0pktt8= =VpHU -----END PGP SIGNATURE----- _______________________________________________ Devel mailing list [email protected] http://lists.laptop.org/listinfo/devel
