aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2015-08-07 13:22:17 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2015-08-07 13:22:17 +0200
commit29f6f82cb37b910bc73ea870f5cba0aaff0394a3 (patch)
tree23ad8b2ba34e4146707f37effac408324bfd9eee
parent1f741719e4750b739711daac2fd45af310b41806 (diff)
downloadman-pages-29f6f82cb37b910bc73ea870f5cba0aaff0394a3.tar.gz
nl_langinfo.3: Clarify details of nl_langinfo_l() return value
setlocale() does not come into play for nl_langinfo_l(), as far as I can tell. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/nl_langinfo.310
1 files changed, 7 insertions, 3 deletions
diff --git a/man3/nl_langinfo.3 b/man3/nl_langinfo.3
index ce9aa397a6..96b6807ed5 100644
--- a/man3/nl_langinfo.3
+++ b/man3/nl_langinfo.3
@@ -115,10 +115,14 @@ If no locale has been selected by
.BR setlocale (3)
for the appropriate category,
.BR nl_langinfo ()
-and
+return a pointer to the corresponding string in the "C" locale.
+The same is true of
.BR nl_langinfo_l ()
-return a pointer to the corresponding string in the
-"C" locale.
+if
+.I locale
+specifies a locale where
+.I langinfo
+data is not defined.
.PP
If \fIitem\fP is not valid, a pointer to an empty string is returned.
.PP