Penguin
Blame: nl_langinfo(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of nl_langinfo(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 NL_LANGINFO
2 !!!NL_LANGINFO
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 CONFORMING TO
8 SEE ALSO
9 ----
10 !!NAME
11
12
13 nl_langinfo - query language and locale information
14 !!SYNOPSIS
15
16
17 __#include
18 __''item''__);
19 __
20 !!DESCRIPTION
21
22
23 The __nl_langinfo__ function provides access to locale
24 information in a more flexible way than localeconv(3)
25 does. Individual and additional elements of the locale
26 categories can be queried.
27
28
29 Examples for the locale elements that can be specified in
30 ''item'' using the constants defined in
31 ''
32
33
34 __CODESET__ (LC_CTYPE)
35
36
37 Return a string with the name of the character encoding used
38 in the selected locale, such as
39 locale__(1).
40
41
42 __D_T_FMT__ (LC_TIME)
43
44
45 Return a string that can be used as a format string for
46 strftime(3) to represent time and date in a
47 locale-specific way.
48
49
50 __D_FMT__ (LC_TIME)
51
52
53 Return a string that can be used as a format string for
54 strftime(3) to represent a date in a locale-specific
55 way.
56
57
58 __T_FMT__ (LC_TIME)
59
60
61 Return a string that can be used as a format string for
62 strftime(3) to represent a time in a locale-specific
63 way.
64
65
66 __DAY___{1-7} (LC_TIME)
67
68
69 Return name of the ''n''-th day of the week. [[Warning:
70 this follows the US convention DAY_1 = Sunday, not the
71 international convention (ISO 8601) that Monday is the first
72 day of the week.]
73
74
75 __ABDAY___{1-7} (LC_TIME)
76
77
78 Return abbreviated name of the ''n''-th day of the
79 week.
80
81
82 __MON___{1-12} (LC_TIME)
83
84
85 Return name of the ''n''-th month.
86
87
88 __ABMON___{1-12} (LC_TIME)
89
90
91 Return abbreviated name of the ''n''-th
92 month.
93
94
95 __RADIXCHAR__ (LC_NUMERIC)
96
97
98 Return radix character (decimal dot, decimal comma,
99 etc.).
100
101
102 __THOUSEP__ (LC_NUMERIC)
103
104
105 Return separator character for thousands (groups of three
106 digits).
107
108
109 __YESEXPR__ (LC_MESSAGES)
110
111
112 Return a regular expression that can be used with the
113 regex(3) function to recognize a positive response to
114 a yes/no question.
115
116
117 __NOEXPR__ (LC_MESSAGES)
118
119
120 Return a regular expression that can be used with the
121 regex(3) function to recognize a negative response to
122 a yes/no question.
123
124
125 __CRNCYSTR__ (LC_MONETARY)
126
127
128 Return the currency symbol, preceded by
129
130
131 The above list covers just some examples of items that can
132 be requested. For a more detailed list, please consult
133 ''The GNU C Library Reference Manual''.
134 !!RETURN VALUE
135
136
137 If no locale has been selected for the appropriate category,
138 __nl_langinfo__ returns a pointer to the corresponding
139 string in the __
140
141
142 If ''item'' is not valid, a pointer to an empty string is
143 returned.
144
145
146 This pointer may point to static data that may be
147 overwritten on the next call to __nl_langinfo__ or
148 __setlocale__.
149 !!CONFORMING TO
150
151
152 The Single UNIX Specification, Version 2
153 !!SEE ALSO
154
155
156 localeconv(3), setlocale(3), locale(1),
157 locale(7), charsets(7), The GNU C Library
158 Reference Manual
159 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.