1 --- gmp-4.2.4.orig/tests/misc/t-scanf.c 2008-08-02 21:11:59.000000000 +0100
2 +++ gmp-4.2.4.sscanf/tests/misc/t-scanf.c 2009-01-28 16:42:26.000000000 +0000
7 +/* This is a problem found on i686-pc-mingw32, running binaries under
8 + Wine. Windows scanf functions don't skip whitespace before %-specifiers
9 + [http://msdn.microsoft.com/en-us/library/kwwtf9ch(VS.71).aspx] */
11 +test_sscanf_s_skips_whitespace (void)
15 + if (sscanf (" ", "%s", str) == EOF)
19 + printf ("Warning, sscanf (\" \", \"%s\", str) != EOF.\n");
20 + printf ("This affects gmp_sscanf, some tests will be suppressed.\n");
26 /* Convert fmt from a GMP scanf format string to an equivalent for a plain
27 libc scanf, for example "%Zd" becomes "%ld". Return 1 if this succeeds,
31 /* EOF for no matching */
32 + if (test_sscanf_s_skips_whitespace ())
35 ret = gmp_sscanf (" ", "%s", buf);