This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,RFC] Change __convert_from_v to use snprintf and use it


Russ Allbery wrote:

> snprintf and vsnprintf are frequently available in a broken form.  Here's
> the test we use in INN (this code is short and obvious enough that I don't
> consider it covered by copyright, and I've also released it into the
> equivalent of the public domain and am the sole author, but I don't have
> signed papers with the FSF).
>
> The other thing that's often broken is accepting NULL as the first
> argument.

[snip]

Thank you very much for your generous offering. Indeed, I would ask you to post
it in the form of complete patch against the current sources for debate.

However, Loren pointed out in private correspondence, some /serious/ problems
with AC_TRY_RUN tests related to cross-builds: of course you cannot run anything
when cross-building!

Therefore, I think the idea is avoiding them as much as possible...

In general, are you aware of many widespread platforms (libc, I mean) not
C99-conforming overall but nevertheless offering a C99-conforming snprintf? We
should try to support them in some way... But is very difficult without
AC_TRY_RUN, I'm afraid...

Ciao, Paolo.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]