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/wprintf.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/wprintf.3')
-rw-r--r-- | lib/libc/stdio/wprintf.3 | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/libc/stdio/wprintf.3 b/lib/libc/stdio/wprintf.3 index 2914716e692..bc8dcc34407 100644 --- a/lib/libc/stdio/wprintf.3 +++ b/lib/libc/stdio/wprintf.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wprintf.3,v 1.6 2019/01/11 09:53:26 schwarze Exp $ +.\" $OpenBSD: wprintf.3,v 1.7 2019/01/16 12:55:49 schwarze Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -33,7 +33,7 @@ .\" .\" @(#)printf.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: January 11 2019 $ +.Dd $Mdocdate: January 16 2019 $ .Dt WPRINTF 3 .Os .Sh NAME @@ -607,15 +607,6 @@ On systems other than the .Dv LC_NUMERIC .Xr locale 1 -category can cause erratic output, for example different characters -substituted for the decimal point or thousands separator characters -inserted into numbers. -For security reasons, make sure that portable programs calling these -functions never call +category can cause erratic output; see CAVEATS in .Xr setlocale 3 -with the -.Dv LC_ALL -or -.Dv LC_NUMERIC -categories but only use -.Dv LC_CTYPE . +for details. |