]> git.saurik.com Git - apple/libc.git/blob - locale/FreeBSD/nl_langinfo.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / locale / FreeBSD / nl_langinfo.3.patch
1 --- nl_langinfo.3.orig 2009-11-30 16:10:29.000000000 -0800
2 +++ nl_langinfo.3 2009-11-30 16:10:30.000000000 -0800
3 @@ -28,14 +28,24 @@
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 .Sh SYNOPSIS
14 .In langinfo.h
15 .Ft char *
16 -.Fn nl_langinfo "nl_item item"
17 +.Fo nl_langinfo
18 +.Fa "nl_item item"
19 +.Fc
20 +.In langinfo.h
21 +.In xlocale.h
22 +.Ft char *
23 +.Fo nl_langinfo_l
24 +.Fa "nl_item item"
25 +.Fa "locale_t loc"
26 +.Fc
27 .Sh DESCRIPTION
28 The
29 .Fn nl_langinfo
30 @@ -76,8 +86,17 @@ if the identified language was
31 Portuguese, and
32 .Qq Li Sun
33 if the identified language was English.
34 +.Pp
35 +While the
36 +.Fn nl_langinfo
37 +function uses the current locale, the
38 +.Fn nl_langinfo_l
39 +function may be passed a locale directly. See
40 +.Xr xlocale 3
41 +for more information.
42 .Sh SEE ALSO
43 -.Xr setlocale 3
44 +.Xr setlocale 3 ,
45 +.Xr xlocale 3
46 .Sh STANDARDS
47 The
48 .Fn nl_langinfo