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: Benjamin Kosnik <bkoz at redhat dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 3 Apr 2002 15:34:53 -0800 (PST)
- Subject: Re: [RFC] PR6015, snprintf, glibc2.3 and all that...
(Paolo, everybody is already subscribed to this list, so I've removed the
cc's on purpose.)
> 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?
.......right. I'm not quite sure this is the way to go though. I don't
really know. I suggest you experiment and see what works.
> 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!
I don't know if __builtin_fprintf knows about locales.
Sorry, I'm not much help.
-benjamin