aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2015-08-07 13:46:34 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2015-08-07 13:46:34 +0200
commit872e754b0114c781d329d576bf26e49ca0b6446c (patch)
treefc9b9170ff069f8033ecdb7b19cd00d70c64dfbc
parent75b3623dc4edbb73397014106566c3a3491ab471 (diff)
downloadman-pages-872e754b0114c781d329d576bf26e49ca0b6446c.tar.gz
nl_langinfo.3: NOTES: note undefined behavior for nl_langinfo_l()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/nl_langinfo.38
1 files changed, 8 insertions, 0 deletions
diff --git a/man3/nl_langinfo.3 b/man3/nl_langinfo.3
index 582c2f1566..e76d461941 100644
--- a/man3/nl_langinfo.3
+++ b/man3/nl_langinfo.3
@@ -163,6 +163,14 @@ T} Thread safety MT-Safe locale
.TE
.SH CONFORMING TO
POSIX.1-2001, POSIX.1-2008, SUSv2.
+.SH NOTES
+The behavior of
+.BR nl_langinfo_l ()
+is undefined if
+.I locale
+is the special locale object
+.BR LC_GLOBAL_LOCALE
+or is not a valid locale object handle.
.SH EXAMPLE
The following program sets the character type and the numeric locale
according to the environment and queries the terminal character set and