mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
tests/strfuncs: mingw-w64 prints 3 digits for the %e exponent
Filed and fixed upstream: https://sourceforge.net/p/mingw-w64/bugs/732/ Once we get a new release in MSYS2 or when we get better gnulib integration this special case needs to be removed again, but for now this will do. https://bugzilla.gnome.org/show_bug.cgi?id=795569
This commit is contained in:
parent
044e65ee28
commit
dad754f5bc
@ -1037,7 +1037,11 @@ test_strtod (void)
|
||||
check_strtod_number (0.75, "%5.2f", " 0.75");
|
||||
check_strtod_number (-0.75, "%0.2f", "-0.75");
|
||||
check_strtod_number (-0.75, "%5.2f", "-0.75");
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
/* FIXME: The included gnulib and the mingw-w64 implementation
|
||||
* currently don't follow C99 and print 3 digits for the exponent.
|
||||
* In case of mingw-w64 this was fixed but not released yet:
|
||||
* https://sourceforge.net/p/mingw-w64/bugs/732/ */
|
||||
check_strtod_number (1e99, "%0.e", "1e+099");
|
||||
#else
|
||||
check_strtod_number (1e99, "%.0e", "1e+99");
|
||||
|
Loading…
Reference in New Issue
Block a user