diff options
author | 2019-01-16 12:55:49 +0000 | |
---|---|---|
committer | 2019-01-16 12:55:49 +0000 | |
commit | a41d0f37be18caa1a290a21e618cbb06c70ee94f (patch) | |
tree | db73e6e13029f72037ea6bb86bdbbd0f716d0283 /lib/libc/stdio/scanf.3 | |
parent | include pf.h for #if NPF > 0 test (diff) | |
download | wireguard-openbsd-a41d0f37be18caa1a290a21e618cbb06c70ee94f.tar.xz wireguard-openbsd-a41d0f37be18caa1a290a21e618cbb06c70ee94f.zip |
For all functions known to be infected by LC_NUMERIC, add short
CAVEATS pointing to the new CAVEATS section in setlocale(3).
Make those in wprintf(3) and wscanf(3) more concise
since duplicate information is a bad idea.
Incompleteness of information originally pointed out by millert@.
OK millert@
Diffstat (limited to 'lib/libc/stdio/scanf.3')
-rw-r--r-- | lib/libc/stdio/scanf.3 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/stdio/scanf.3 b/lib/libc/stdio/scanf.3 index bcd156c5441..de75b931ce3 100644 --- a/lib/libc/stdio/scanf.3 +++ b/lib/libc/stdio/scanf.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: scanf.3,v 1.23 2017/12/01 11:18:40 schwarze Exp $ +.\" $OpenBSD: scanf.3,v 1.24 2019/01/16 12:55:49 schwarze Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: December 1 2017 $ +.Dd $Mdocdate: January 16 2019 $ .Dt SCANF 3 .Os .Sh NAME @@ -459,6 +459,15 @@ and .Fn vfscanf in .Bx 4.3 Reno . +.Sh CAVEATS +On systems other than +.Ox , +the +.Dv LC_NUMERIC +.Xr locale 1 +category can cause parsing failures; see CAVEATS in +.Xr setlocale 3 +for details. .Sh BUGS Numerical strings are truncated to 512 characters; for example, .Cm %f |