Re: Feature request: c-snprintf

2009-03-25 Thread John Darrington
On Tue, Mar 24, 2009 at 11:18:12PM +0100, Bruno Haible wrote: So, for numbers to strings, there are four ways to proceed: 1) Use the snprintf_l function available on MacOS X 10.5. Drawback: Unportable, and gnulib cannot provide an easy replacement for lo

Re: Feature request: c-snprintf

2009-03-24 Thread Bruno Haible
Eric Blake wrote: > Huh? ... John is asking for converting numbers to strings Yes. Ops, what I wrote was complete nonsense. So, for numbers to strings, there are four ways to proceed: 1) Use the snprintf_l function available on MacOS X 10.5. Drawback: Unportable, and gnulib cannot pr

Re: Feature request: c-snprintf

2009-03-24 Thread Ben Pfaff
Eric Blake writes: > 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). For what it's worth, it's the '.' character in floating

Re: Feature request: c-snprintf

2009-03-24 Thread Eric Blake
-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 strin

Re: Feature request: c-snprintf

2009-03-24 Thread Bruno Haible
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 conve

Feature request: c-snprintf

2009-03-24 Thread John Darrington
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? J' -- PGP Public key ID: 1024D/2DE827B3 fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3