doc: Update for Solaris 11.4.
[gnulib.git] / doc / posix-functions / vsnprintf.texi
blob63a5e1f6081910ca73a57db85b122e1dae106fcd
1 @node vsnprintf
2 @section @code{vsnprintf}
3 @findex vsnprintf
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/vsnprintf.html}
7 Gnulib module: vsnprintf or vsnprintf-posix
9 Portability problems fixed by either Gnulib module @code{vsnprintf} or @code{vsnprintf-posix}:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 IRIX 5.3, OSF/1 4.0, Solaris 2.5.1.
14 @item
15 This function does not support format directives that access arguments in an
16 arbitrary order, such as @code{"%2$s"}, on some platforms:
17 NetBSD 3.0, mingw, MSVC 14, BeOS.
18 @item
19 This function overwrites memory even when a size argument of 1 is passed on some
20 platforms:
21 Linux libc5, BeOS.
22 @item
23 This function does not return a byte count as specified in C99 on some
24 platforms:
25 HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw, MSVC 14.
26 @end itemize
28 Portability problems fixed by Gnulib module @code{vsnprintf-posix}:
29 @itemize
30 @item
31 This function does not support size specifiers as in C99 (@code{hh}, @code{ll},
32 @code{j}, @code{t}, @code{z}) on some platforms:
33 AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9, Cygwin 1.5.24, mingw, MSVC 14, BeOS.
34 @item
35 printf of @samp{long double} numbers is unsupported on some platforms:
36 mingw, MSVC 14, BeOS.
37 @item
38 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an
39 incorrect result on some platforms:
40 AIX 5.2, OSF/1 5.1, Solaris 11.4, mingw, MSVC 14.
41 @item
42 This function does not support the @samp{a} and @samp{A} directives on some
43 platforms:
44 glibc-2.3.6, Mac OS X 10.5, NetBSD 5.0, OpenBSD 4.0, AIX 5.2, HP-UX 11,
45 IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin 1.5.x, mingw, MSVC 14, BeOS.
46 @item
47 This function does not support the @samp{F} directive on some platforms:
48 NetBSD 3.0, AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9,
49 Cygwin 1.5.x, mingw, MSVC 14, BeOS.
50 @item
51 This function does not support the @samp{ls} directive on some platforms:
52 OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Cygwin 1.5.x, Haiku.
53 @item
54 This function does not support precisions in the @samp{ls} directive correctly
55 on some platforms:
56 Solaris 11.4.
57 @item
58 This function doesn't support the @code{'} flag on some platforms:
59 NetBSD 3.0, Cygwin 1.5.24, mingw, MSVC 14.
60 @item
61 This function does not round the argument of the @samp{a} directive correctly
62 on some platforms:
63 Mac OS X 10.12, FreeBSD 6.1.
64 @item
65 This function behaves incorrectly when a @samp{-} flag and a negative width
66 are specified together, on some platforms:
67 HP-UX 10.20.
68 @item
69 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
70 with zeroes, or wrong capitalization) on some platforms:
71 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin 1.5.x, mingw, MSVC 14.
72 @item
73 This function does not support precisions larger than 512 or 1024 in integer,
74 floating-point and pointer output on some platforms:
75 AIX 7.1, Solaris 10/x86, mingw, MSVC 14, BeOS.
76 @item
77 This function mishandles large floating point precisions
78 (for example, formatting 1.0 with @samp{"%.511f"})
79 on some platforms:
80 Solaris 10.
81 @item
82 This function can crash in out-of-memory conditions on some platforms:
83 Mac OS X 10.3, FreeBSD 6.0, NetBSD 5.0.
84 @item
85 This function does not truncate the result as specified in C99 on some platforms:
86 mingw, MSVC 14.
87 @item
88 This function does not fully support the @samp{n} directive on some platforms:
89 HP-UX 11, mingw, MSVC 14.
90 @item
91 This function overwrites memory even when a zero size argument is passed on some
92 platforms:
93 HP-UX 11, OSF/1 5.1.
94 @end itemize
96 Portability problems not fixed by Gnulib:
97 @itemize
98 @item
99 Formatting noncanonical @samp{long double} numbers produces
100 nonmeaningful results on some platforms:
101 glibc and others, on x86, x86_64, IA-64 CPUs.
102 @item
103 When formatting an integer with grouping flag, this function inserts thousands
104 separators even in the "C" locale on some platforms:
105 NetBSD 5.1.
106 @end itemize