There is also a changlog from 2009: 2009-04-20 Ozkan Sezer <seze...@gmail.com> FR/2619978: * mingw-w64-crt/gdtoa/strtof.c, mingw-w64-crt/gdtoa/strtopx.c: Prepend the strtof and strtold symbols with '__mingw_' to provide both of strtof and strtold which rely on msvcrt, and __mingw_strtof and __mingw_strtold which rely on the internal gdtoa library. * mingw-w64-headers/include/stdlib.h: Properly provide the prototypes for __mingw_strtof and __mingw_strtold.
It seems that __mingw_strtold or its alias __strtold should be used as a replacement of strtold (MSVCRT). 2018-07-02 0:12 GMT+02:00 <sisyph...@optusnet.com.au>: > Hi Carl, > > I'm already defining __USE_MINGW_ANSI_STDIO. > > The messages you've quoted from the ChangeLog relate to strtod(). > But strtod() works fine - the bug occurs only with strtold(). > > Is it just that strtold() needs to be aliased to __mingw_strtold() when > __USE_MINGW_ANSI_STDIO is defned ? > > Thanks for looking into it. > > Cheers, > Rob > > -----Original Message----- From: Carl Kleffner > Sent: Sunday, July 01, 2018 11:13 PM > To: mingw-w64-public@lists.sourceforge.net > Subject: Re: [Mingw-w64-public] Regarding strtold() bugs #711 and #725 > > > I was too hasty, it's just the other way around. > Try to define __USE_MINGW_ANSI_STDIO to make automatically use of > __mingw_strtold instead of the strtold (msvcrt). > > > > 2018-07-01 15:03 GMT+02:00 Carl Kleffner <cmkleff...@gmail.com>: > > >> mingw-w64/mingw-w64-headers/crt/ChangeLog: >> >> 2014-03-03 Ray Donnelly mingw.andr...@gmail.com >> * stdlib.h (strtod): Don't define it to __strtod if >> __USE_MINGW_STRTOX is defined. >> >> mingw-w64-headers/crt/ChangeLog.2013: >> >> 2013-01-12 Jonathan Yong <jo...@users.sourceforge.net> >> >> * stdlib.h: Define __USE_MINGW_STRTOX if __USE_MINGW_ANSI_STDIO in >> use. >> (strtod): Alias to __mingw_strtod if __USE_MINGW_STRTOX. >> (strtof): Likewise to __mingw_strtof. >> >> This bug should only happen if either __USE_MINGW_ANSI_STDIO or >> __USE_MINGW_STRTOX is defined. However, I am not sure if this should be >> the >> desired behaviour. >> >> 2018-07-01 11:27 GMT+02:00 <sisyph...@optusnet.com.au>: >> >> Hi, >>> >>> In relation to >>> >>> https://sourceforge.net/p/mingw-w64/bugs/711/ >>> and >>> https://sourceforge.net/p/mingw-w64/bugs/725/ >>> >>> I've just discovered that replacing the strtold() calls with calls to >>> __mingw_strtold() avoids the buggy behaviour. >>> >>> Why would that be so ? >>> Does this observation open the door to these bugs with strtold() soon >>> being fixed ? >>> Are there any downsides to my using __mingw_strtold() as a replacement >>> for strtold() ? >>> >>> I should add that I've tested this only on gcc version 8.1.0 >>> (i686-posix-dwarf-rev0, Built by MinGW-W64 project) and gcc version 8.1.0 >>> (x86_64-posix-seh-rev0, Built by MinGW-W64 project). >>> I haven't actually tested it on mingw-w64 ports of earlier versions of >>> gcc. >>> >>> Cheers, >>> Rob >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Mingw-w64-public mailing list >>> Mingw-w64-public@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public >>> >>> >> >> ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public