Mercurial > hg > octave-shane > gnulib-hg
annotate doc/posix-functions/vsnprintf.texi @ 15607:6355dc4626b5
doc: Update regarding MSVC 9.
* doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
tested".
* doc/posix-functions/*.texi: Update with info about MSVC 9.
* doc/posix-headers/*.texi: Likewise.
* doc/pastposix-functions/*.texi: Likewise.
* doc/glibc-functions/*.texi: Likewise.
* doc/glibc-headers/*.texi: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 11 Sep 2011 21:56:17 +0200 |
parents | 2171e9d2231b |
children | ee328959515f |
rev | line source |
---|---|
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 @node vsnprintf |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 @section @code{vsnprintf} |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 @findex vsnprintf |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 |
13549
bb0ceefd22dc
avoid some overlong lines from posix urls, etc.
Karl Berry <karl@freefriends.org>
parents:
11234
diff
changeset
|
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/vsnprintf.html} |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 Gnulib module: vsnprintf or vsnprintf-posix |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 Portability problems fixed by either Gnulib module @code{vsnprintf} or @code{vsnprintf-posix}: |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 @itemize |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 This function is missing on some platforms: |
10464
cde9c9b93afe
Add info about functions missing on IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents:
9941
diff
changeset
|
13 IRIX 5.3, OSF/1 4.0, Solaris 2.5.1. |
9941
b1a61ff4ff40
Document snprintf bug on Linux libc5.
Bruno Haible <bruno@clisp.org>
parents:
9674
diff
changeset
|
14 @item |
15340
03a50862ef09
snprintf: guarantee %1$d, for libintl
Eric Blake <eblake@redhat.com>
parents:
15296
diff
changeset
|
15 This function does not support format directives that access arguments in an |
03a50862ef09
snprintf: guarantee %1$d, for libintl
Eric Blake <eblake@redhat.com>
parents:
15296
diff
changeset
|
16 arbitrary order, such as @code{"%2$s"}, on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
17 NetBSD 3.0, mingw, MSVC 9, BeOS. |
15340
03a50862ef09
snprintf: guarantee %1$d, for libintl
Eric Blake <eblake@redhat.com>
parents:
15296
diff
changeset
|
18 @item |
9941
b1a61ff4ff40
Document snprintf bug on Linux libc5.
Bruno Haible <bruno@clisp.org>
parents:
9674
diff
changeset
|
19 This function overwrites memory even when a size argument of 1 is passed on some |
b1a61ff4ff40
Document snprintf bug on Linux libc5.
Bruno Haible <bruno@clisp.org>
parents:
9674
diff
changeset
|
20 platforms: |
15340
03a50862ef09
snprintf: guarantee %1$d, for libintl
Eric Blake <eblake@redhat.com>
parents:
15296
diff
changeset
|
21 Linux libc5, BeOS. |
14003
f82a977dcf0b
vsnprintf: make more consistent with snprintf; doc fixes
Paul Eggert <eggert@cs.ucla.edu>
parents:
14001
diff
changeset
|
22 @item |
15340
03a50862ef09
snprintf: guarantee %1$d, for libintl
Eric Blake <eblake@redhat.com>
parents:
15296
diff
changeset
|
23 This function does not return a byte count as specified in C99 on some |
03a50862ef09
snprintf: guarantee %1$d, for libintl
Eric Blake <eblake@redhat.com>
parents:
15296
diff
changeset
|
24 platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
25 HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw, MSVC 9. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 @end itemize |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 Portability problems fixed by Gnulib module @code{vsnprintf-posix}: |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 @itemize |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
31 This function does not support size specifiers as in C99 (@code{hh}, @code{ll}, |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 @code{j}, @code{t}, @code{z}) on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
33 AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9, Cygwin 1.5.24, mingw, MSVC 9, BeOS. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
35 printf of @samp{long double} numbers is unsupported on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
36 mingw, MSVC 9, BeOS. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 incorrect result on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
40 AIX 5.2, OSF/1 5.1, Solaris 11 2010-11, mingw, MSVC 9. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
41 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
42 This function does not support the @samp{a} and @samp{A} directives on some |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
43 platforms: |
13892 | 44 glibc-2.3.6, MacOS X 10.5, NetBSD 5.0, OpenBSD 4.0, AIX 5.2, HP-UX 11, |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
45 IRIX 6.5, OSF/1 5.1, Solaris 11 2010-11, Cygwin 1.5.x, mingw, MSVC 9, BeOS. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
46 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
47 This function does not support the @samp{F} directive on some platforms: |
11048
b885f8c983db
doc: mention more functions added in cygwin 1.7.0
Eric Blake <ebb9@byu.net>
parents:
10876
diff
changeset
|
48 NetBSD 3.0, AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9, |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
49 Cygwin 1.5.x, mingw, MSVC 9, BeOS. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
50 @item |
11219
aaeb2f86d096
Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents:
11048
diff
changeset
|
51 This function does not support the @samp{ls} directive on some platforms: |
11234
cf3001cea096
Separate two tests. Mention the platforms in canonical order.
Bruno Haible <bruno@clisp.org>
parents:
11225
diff
changeset
|
52 OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Cygwin 1.5.x, Haiku. |
11219
aaeb2f86d096
Fix *printf behaviour regarding the %ls directive.
Bruno Haible <bruno@clisp.org>
parents:
11048
diff
changeset
|
53 @item |
11223
41012a39667b
Work around a *printf bug with %ls on Solaris.
Bruno Haible <bruno@clisp.org>
parents:
11219
diff
changeset
|
54 This function does not support precisions in the @samp{ls} directive correctly |
41012a39667b
Work around a *printf bug with %ls on Solaris.
Bruno Haible <bruno@clisp.org>
parents:
11219
diff
changeset
|
55 on some platforms: |
13917
3bbfc7e37ec2
Update for Solaris 11 2010-11.
Bruno Haible <bruno@clisp.org>
parents:
13908
diff
changeset
|
56 Solaris 11 2010-11. |
11223
41012a39667b
Work around a *printf bug with %ls on Solaris.
Bruno Haible <bruno@clisp.org>
parents:
11219
diff
changeset
|
57 @item |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
58 This function doesn't support the @code{'} flag on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
59 NetBSD 3.0, Cygwin 1.5.24, mingw, MSVC 9. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
60 @item |
9674
b69f1141e94f
Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents:
9638
diff
changeset
|
61 This function behaves incorrectly when a @samp{-} flag and a negative width |
b69f1141e94f
Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents:
9638
diff
changeset
|
62 are specified together, on some platforms: |
b69f1141e94f
Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents:
9638
diff
changeset
|
63 HP-UX 10.20. |
b69f1141e94f
Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible <bruno@clisp.org>
parents:
9638
diff
changeset
|
64 @item |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
65 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
66 with zeroes) on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
67 MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, OSF/1 5.1, Solaris 11 2010-11, Cygwin 1.5.x, mingw, MSVC 9. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
68 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
69 This function does not support precisions larger than 512 or 1024 in integer, |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
70 floating-point and pointer output on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
71 AIX 7.1, Solaris 10/x86, mingw, MSVC 9, BeOS. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
72 @item |
14005
f585ecc144aa
*printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents:
14003
diff
changeset
|
73 This function mishandles large floating point precisions |
f585ecc144aa
*printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents:
14003
diff
changeset
|
74 (for example, formatting 1.0 with @samp{"%.511f"}) |
f585ecc144aa
*printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents:
14003
diff
changeset
|
75 on some platforms: |
f585ecc144aa
*printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents:
14003
diff
changeset
|
76 Solaris 10. |
f585ecc144aa
*printf: Detect large precisions bug on Solaris 10/SPARC.
Bruno Haible <bruno@clisp.org>
parents:
14003
diff
changeset
|
77 @item |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
78 This function can crash in out-of-memory conditions on some platforms: |
13892 | 79 MacOS X 10.3, FreeBSD 6.0, NetBSD 5.0. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
80 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
81 This function does not truncate the result as specified in C99 on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
82 mingw, MSVC 9. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
83 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
84 This function does not fully support the @samp{n} directive on some platforms: |
15591
2171e9d2231b
*printf: Add support for MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
15340
diff
changeset
|
85 HP-UX 11, mingw, MSVC 9. |
9638
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
86 @item |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
87 This function overwrites memory even when a zero size argument is passed on some |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
88 platforms: |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
89 HP-UX 11, OSF/1 5.1. |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
90 @end itemize |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
91 |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
92 Portability problems not fixed by Gnulib: |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
93 @itemize |
070329237839
Rename two directories: headers -> posix-headers, functions -> posix-functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
94 @end itemize |