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: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org, drepper at redhat dot com
- Date: Wed, 03 Apr 2002 22:46:01 +0200
- Subject: Re: [RFC] PR6015, snprintf, glibc2.3 and all that...
- References: <Pine.SOL.3.91.1020403114814.8912A-100000@taarna.cygnus.com>
Benjamin Kosnik wrote:
>>4- What's wrong, then, with excerpting /right now/ some of snprintf GPL
>>code from glibc2.2, stripping it down to the essential and implementing
>>the "hard-wired" approach outlined by Benjamin?
>>
>Nothing.
>
>>5- In case for some utterly mysterious legal reasons something is not
>>ok with glibc (I cannot imagine what!) there are around nice, free
>>standing GPL implementations of snprintf, which would suffice for our
>>purposes, for instance: http://www.ijs.si/software/snprintf/
>>
>
>Right. Pick one, do a patch.......
>
Thanks Benjamin for your encouragement...
Now possibly I got a more detailed line of attach: if I understand well
the implementation of snprintf in glibc, it relies essentially on
fprintf. Now, we have a /builtin/ fprintf which we could probably
exploit! Other builtins are already used in v3, right?
How exactly they work? I'm not very knowldedgeable about them... They do
not rely on an external libc, right? Do you think it would be possible
to force __builtin_fprintf to use the "C" locale unconditionally? It
would be great!
Ciao, Paolo.