[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: c-snprintf
From: |
Eric Blake |
Subject: |
Re: Feature request: c-snprintf |
Date: |
Tue, 24 Mar 2009 06:51:41 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 |
-----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 address@hidden
-----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-----