diff options
author | 2019-05-16 13:35:16 +0000 | |
---|---|---|
committer | 2019-05-16 13:35:16 +0000 | |
commit | b342463f75e905ca6a62e842326816166fbf7cdb (patch) | |
tree | 103443b8919a9c2badd85f57218fd09af191444d /lib/libc/stdio | |
parent | Revert suni'ls ftp rewrite for now. (diff) | |
download | wireguard-openbsd-b342463f75e905ca6a62e842326816166fbf7cdb.tar.xz wireguard-openbsd-b342463f75e905ca6a62e842326816166fbf7cdb.zip |
More consistently put remarks about the less useful LC_* categoties,
i.e. those other than LC_CTYPE, into the CAVEATS section, and
standardize wording somewhat.
OK jmc@
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/perror.3 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/libc/stdio/perror.3 b/lib/libc/stdio/perror.3 index c5c0d9f76a8..bed232d2177 100644 --- a/lib/libc/stdio/perror.3 +++ b/lib/libc/stdio/perror.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: perror.3,v 1.10 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: perror.3,v 1.11 2019/05/16 13:35:16 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991 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: July 17 2013 $ +.Dd $Mdocdate: May 16 2019 $ .Dt PERROR 3 .Os .Sh NAME @@ -44,7 +44,7 @@ .Sh DESCRIPTION The .Fn perror -function looks up the language-dependent error message string affiliated +function looks up the error message string affiliated with an error number and writes it, followed by a new-line, to the standard error stream. .Pp @@ -76,3 +76,13 @@ The .Fn perror function first appeared in .At v4 . +.Sh CAVEATS +On systems other than +.Ox , +the +.Dv LC_MESSAGES +.Xr locale 1 +category can cause different strings to be printed instead of the +normal error messages; see CAVEATS in +.Xr setlocale 3 +for details. |