poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / swprintf.texi
blob932f64ffd4548ac3bfc5489a8a4358d1f159a89e
1 @node swprintf
2 @section @code{swprintf}
3 @findex swprintf
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/swprintf.html}
7 Gnulib module: ---
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @item
16 The @code{%m} directive is not portable, use @code{%s} mapped to an
17 argument of @code{strerror(errno)} (or a version of @code{strerror_r})
18 instead.
19 @item
20 This function is missing on some platforms:
21 NetBSD 3.0, OpenBSD 3.8, Minix 3.1.8, HP-UX 11.00, IRIX 6.5, Cygwin 1.5.x.
22 @item
23 This function has a different signature on some platforms:
24 MSVC 9.
25 @item
26 This function is only defined as a macro on some platforms:
27 MSVC 14.
28 @item
29 This function does not support the @samp{n} directive on some platforms:
30 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
31 Mac OS X 10.13, MSVC 14.
32 @item
33 On Windows and 32-bit AIX platforms, @code{wchar_t} is a 16-bit type and therefore cannot
34 accommodate all Unicode characters.
35 @item
36 On Windows, this function does not take a buffer size as second argument.
37 @item
38 When formatting an integer with grouping flag, this function inserts thousands
39 separators even in the "C" locale on some platforms:
40 NetBSD 5.1.
41 @end itemize