]> git.saurik.com Git - apple/libc.git/blame - locale/FreeBSD/nl_langinfo.3.patch
Libc-498.tar.gz
[apple/libc.git] / locale / FreeBSD / nl_langinfo.3.patch
CommitLineData
224c7076
A
1--- _SB/Libc/locale/FreeBSD/nl_langinfo.3 2004-11-25 11:38:19.000000000 -0800
2+++ _SB/Libc/locale/FreeBSD/nl_langinfo.3.edit 2006-06-28 16:55:51.000000000 -0700
3@@ -28,14 +28,24 @@
3d9156a7
A
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
224c7076 13 .Sh SYNOPSIS
3d9156a7
A
14 .In langinfo.h
15 .Ft char *
224c7076
A
16-.Fn nl_langinfo "nl_item item"
17+.Fo nl_langinfo
18+.Fa "nl_item item"
19+.Fc
20+.In langinfo.h
3d9156a7
A
21+.In xlocale.h
22+.Ft char *
224c7076
A
23+.Fo nl_langinfo_l
24+.Fa "nl_item item"
25+.Fa "locale_t loc"
26+.Fc
3d9156a7
A
27 .Sh DESCRIPTION
28 The
29 .Fn nl_langinfo
224c7076
A
30@@ -53,7 +63,7 @@
31 or to the
32 category
33 .Dv LC_ALL ,
34-may overwrite buffer pointed by the return value.
35+may overwrite the buffer pointed to by the return value.
36 .Sh EXAMPLES
37 For example:
38 .Pp
39@@ -65,6 +75,14 @@
3d9156a7
A
40 Portuguese, and
41 .Qq Li Sun
42 if the identified language was English.
43+.Pp
44+While the
45+.Fn nl_langinfo
46+function uses the current locale, the
47+.Fn nl_langinfo_l
48+function may be passed a locale directly. See
49+.Xr xlocale 3
50+for more information.
51 .Sh RETURN VALUES
52 In a locale where langinfo data is not defined,
53 .Fn nl_langinfo
224c7076 54@@ -77,7 +95,8 @@
3d9156a7
A
55 .Fa item
56 contains an invalid setting.
57 .Sh SEE ALSO
58-.Xr setlocale 3
59+.Xr setlocale 3 ,
60+.Xr xlocale 3
61 .Sh STANDARDS
62 The
63 .Fn nl_langinfo