-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Bruno Haible on 3/24/2009 6:38 AM: > John Darrington wrote: >> In pspp, we've been using the c-ctype module. Would it also be >> possible to produce a snprintf function and friends which ignores >> locale settings and always formats strings in the C locale? > > gnulib does not have this, but it has modules c-strtod and c-strtold > for conversion of numbers to strings in a locale independent way.
Huh? strtod converts strings to numbers, but John is asking for converting numbers to strings (about all that affects this is the use of the optional ' flag, as well as the choice of . character in floating point). - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknI110ACgkQ84KuGfSFAYBaqQCeI5TrhTMOX09pnIoW9ixzoyOJ R6AAoK1bvReCwQp2I4/mtp1kca8VfEqO =3opd -----END PGP SIGNATURE-----