Web lists-archives.com

Re: [Mingw-users] bizarre problem, need help from a mingw developer

> From: Keith Marshall <keithmarshall@xxxxxxxxxxxxxxxxxxxxx>
> Date: Thu, 10 Mar 2016 13:19:19 +0000
> > MinGW, by contrast, uses the msvcrt.dll which comes with the OS, so
> > you must look up the relevant printf documentation under the "Other
> > versions" link provided at the top of the page.  I think the
> > system-provided msvcrt.dll corresponds to VS 2003
> That's the .NET reference version, which I've never considered to be a
> reliable reference source for MinGW; most pertinent, particularly for
> legacy users, would be the VC6 reference, but unfortunately, Microsoft
> no longer provide a navigable path to it.  In any case, the MSVCRT.DLL
> on Vista and later already incorporates, at least partially, support
> printf() features from MSVCR80.DLL, which is a later release than is
> covered by that VS 2003 reference, so no, it is not universally true
> to say that the system-provided MSVCRT.DLL corresponds to VS 2003.

So what would be the relevant reference for msvcrt.dll on Vista and
later systems? VS 2005?

> > or something, and there %lf is not mentioned at all.
> Indeed, it isn't, but neither is there any reference to formatting of
> long doubles at all, nor any hint that ANY modifier may be legally
> used with "%f".  If you're going to pick that particular nit, then
> "%lf" must be declared invalid usage; end of story.

I indeed think that using %lf with mscvcrt.dll printf functionality
invokes undefined behavior, yes.

Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe