]> git.saurik.com Git - apple/libc.git/blob - locale/FreeBSD/nl_langinfo.3.patch
Libc-391.tar.gz
[apple/libc.git] / locale / FreeBSD / nl_langinfo.3.patch
1 --- nl_langinfo.3.orig Fri Mar 11 19:44:47 2005
2 +++ nl_langinfo.3 Fri Mar 11 19:52:50 2005
3 @@ -28,7 +28,8 @@
4 .Dt NL_LANGINFO 3
5 .Os
6 .Sh NAME
7 -.Nm nl_langinfo
8 +.Nm nl_langinfo ,
9 +.Nm nl_langinfo_l
10 .Nd language information
11 .Sh LIBRARY
12 .Lb libc
13 @@ -36,6 +37,9 @@
14 .In langinfo.h
15 .Ft char *
16 .Fn nl_langinfo "nl_item item"
17 +.In xlocale.h
18 +.Ft char *
19 +.Fn nl_langinfo_l "nl_item item" "locale_t loc"
20 .Sh DESCRIPTION
21 The
22 .Fn nl_langinfo
23 @@ -65,6 +69,14 @@
24 Portuguese, and
25 .Qq Li Sun
26 if the identified language was English.
27 +.Pp
28 +While the
29 +.Fn nl_langinfo
30 +function uses the current locale, the
31 +.Fn nl_langinfo_l
32 +function may be passed a locale directly. See
33 +.Xr xlocale 3
34 +for more information.
35 .Sh RETURN VALUES
36 In a locale where langinfo data is not defined,
37 .Fn nl_langinfo
38 @@ -77,7 +89,8 @@
39 .Fa item
40 contains an invalid setting.
41 .Sh SEE ALSO
42 -.Xr setlocale 3
43 +.Xr setlocale 3 ,
44 +.Xr xlocale 3
45 .Sh STANDARDS
46 The
47 .Fn nl_langinfo