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


Paolo Carlini <pcarlini@unitus.it> writes:

> 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!

Yeah, that pretty much kills my approach.

> In general, are you aware of many widespread platforms (libc, I mean)
> not C99-conforming overall but nevertheless offering a C99-conforming
> snprintf?

I don't know what C99-conforming means in this context, and I don't
normally test for a lot of C99 features.  I'm not aware of any platform
which is fully C99-conformant at the present time.

This snprintf test fails on every system I've tried except a fairly recent
GNU glibc.  Even Solaris 8 gets it wrong for an initial pointer of NULL.
(AIX, IRIX, and HP-UX all at least have some snprintf; Digital Unix 4.0
doesn't.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


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