This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] PR6015, snprintf, glibc2.3 and all that...
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 04 Apr 2002 10:32:18 +0200
- Subject: Re: [RFC] PR6015, snprintf, glibc2.3 and all that...
- References: <1017908813.26729.143.camel@akkadia.org>
Ulrich Drepper wrote:
>On Thu, 2002-04-04 at 00:15, Paolo Carlini wrote:
>
>>May I ask which are your feelings about this issue at large? Does it
>>make sense to envisage a "C"-locale only, minimal, snprintf to be used
>>
>>for low-level (MT-clean, indeed) number formatting in v3?
>>
>You probably underestimate the amount of work and code this requires.
>For int formatting without high performance expectations you might get
>away with reasonable small amount of code. If you need the format flags
>(don't know in what contexts you want to use it) it already gets
>complicated. Reimplementing floating-point printing is, ehm,
>challenging. Not many people did it successfully. It took me about 3-4
>weeks full-time (>14h a day) to write both reading and writing
>functions. Plus about 10 bug fixes in the following now 7 years the
>code exists. And the necessary code is, again depending on the quality
>you want to achieve, really big.
>
>If you want to do the work go ahead. But make sure that if the code
>isn't needed (as in glbic 2.3) it doesn't get used. The system library
>code is almost certainly be better and sharing is adding on top of this.
>
There is a misunderstanding here... Probably due to my bad english... I
never meant really implementing this myself! You are kind with me in
supposing this! I meant really /excerpting/ and /adapting/ it from
glibc2.2! Is this doable?
Ciao, Paolo.