summaryrefslogtreecommitdiff
path: root/doc/posix-functions/sprintf.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-12-22 15:13:59 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2010-12-22 15:14:38 -0800
commitc5d4f8b1cc872fbd3be75e160fd0483fc9181caf (patch)
tree53452dab6a19ebda33d33acb344501bb19e72b8a /doc/posix-functions/sprintf.texi
parent998bbb3b39d3c7245000b03b2ce16996da2ad256 (diff)
downloadgnulib-c5d4f8b1cc872fbd3be75e160fd0483fc9181caf.tar.gz
doc: document Solaris printf bug with large float precisions
* doc/posix-functions/dprintf.texi (dprintf): * doc/posix-functions/fprintf.texi (fprintf): * doc/posix-functions/printf.texi (printf): * doc/posix-functions/snprintf.texi (snprintf): * doc/posix-functions/sprintf.texi (sprintf): * doc/posix-functions/vdprintf.texi (vdprintf): * doc/posix-functions/vfprintf.texi (vfprintf): * doc/posix-functions/vprintf.texi (vprintf): * doc/posix-functions/vsnprintf.texi (vsnprintf): * doc/posix-functions/vsprintf.texi (vsprintf): Mention that these functions mishandle large floating point precisions on Solaris 10. The same bug is also present in Solaris 8, and I assume earlier. This causes "cd gnulib-tests; make check" to fail on Solaris 8 (and I assume, later) when building the latest coreutils, in test-vasprintf-posix's call to my_asprintf (&result, "%.4000f %d", 1.0, 99). I have not checked the wide flavors (e.g., wprintf) so this patch just updates the documentation for the narrow ones.
Diffstat (limited to 'doc/posix-functions/sprintf.texi')
-rw-r--r--doc/posix-functions/sprintf.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/posix-functions/sprintf.texi b/doc/posix-functions/sprintf.texi
index 5ebd16f601..cce9627625 100644
--- a/doc/posix-functions/sprintf.texi
+++ b/doc/posix-functions/sprintf.texi
@@ -61,4 +61,9 @@ MacOS X 10.3, FreeBSD 6.0, NetBSD 5.0.
Portability problems not fixed by Gnulib:
@itemize
+@item
+This function mishandles large floating point precisions
+(for example, formatting 1.0 with @samp{"%.511f"})
+on some platforms:
+Solaris 10.
@end itemize