summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/wprintf.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-01-16 12:55:50 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-01-16 12:55:50 +0000
commit82da4aee4bcc3a63ac48b767b77dc5acc2634d88 (patch)
tree13ee980b960ad1355c481c4ab5892e74c8c02891 /lib/libc/stdio/wprintf.3
parent9889c6c46dee44e52ee5a2dc0ae2bb99284f54c2 (diff)
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.317
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.