@@ -108,6 +108,15 @@ \section{\module{locale} ---
108108 \end {tableii }
109109\end {funcdesc }
110110
111+ \begin {funcdesc }{nl_langinfo}{option}
112+
113+ Return some locale-specific information as a string. This function is
114+ not available on all systems, and the set of possible options might
115+ also vary across platforms. The possible argument values are numbers,
116+ for which symbolic constants are available in the locale module.
117+
118+ \end {funcdesc }
119+
111120\begin {funcdesc }{getdefaultlocale}{\optional {envvars}}
112121 Tries to determine the default locale settings and returns
113122 them as a tuple of the form \code {(\var {language code},
@@ -259,6 +268,116 @@ \section{\module{locale} ---
259268 \function {localeconv()}.
260269\end {datadesc }
261270
271+ The \function {nl_langinfo} function accepts one of the following keys.
272+ Most descriptions are taken from the corresponding description in the
273+ GNU C library.
274+
275+ \begin {datadesc }{CODESET}
276+ Return a string with the name of the character encoding used in the
277+ selected locale.
278+ \end {datadesc }
279+
280+ \begin {datadesc }{D_T_FMT}
281+ Return a string that can be used as a format string for strftime(3) to
282+ represent time and date in a locale-specific way.
283+ \end {datadesc }
284+
285+ \begin {datadesc }{D_FMT}
286+ Return a string that can be used as a format string for strftime(3) to
287+ represent a date in a locale-specific way.
288+ \end {datadesc }
289+
290+ \begin {datadesc }{T_FMT}
291+ Return a string that can be used as a format string for strftime(3) to
292+ represent a time in a locale-specific way.
293+ \end {datadesc }
294+
295+ \begin {datadesc }{T_FMT_AMPM}
296+ The return value can be used as a format string for `strftime' to
297+ represent time in the am/pm format.
298+ \end {datadesc }
299+
300+ \begin {datadesc }{DAY_1 ... DAY_7}
301+ Return name of the n-th day of the week. \[ Warning: this follows the US
302+ convention DAY_1 = Sunday, not the international convention (ISO 8601)
303+ that Monday is the first day of the week.\]
304+ \end {datadesc }
305+
306+ \begin {datadesc }{ABDAY_1 ... ABDAY_7}
307+ Return abbreviated name of the n-th day of the week.
308+ \end {datadesc }
309+
310+ \begin {datadesc }{MON_1 ... MON_12}
311+ Return name of the n-th month.
312+ \end {datadesc }
313+
314+ \begin {datadesc }{ABMON_1 ... ABMON_12}
315+ Return abbreviated name of the n-th month.
316+ \end {datadesc }
317+
318+ \begin {datadesc }{RADIXCHAR}
319+ Return radix character (decimal dot, decimal comma, etc.)
320+ \end {datadesc }
321+
322+ \begin {datadesc }{THOUSEP}
323+ Return separator character for thousands (groups of three digits).
324+ \end {datadesc }
325+
326+ \begin {datadesc }{YESEXPR}
327+ Return a regular expression that can be used with the regex
328+ function to recognize a positive response to a yes/no question.
329+ \[ Warning: the expression is in the syntax suitable for the
330+ regex C library function, which might differ from the syntax
331+ used in \module {re}\]
332+ \end {datadesc }
333+
334+ \begin {datadesc }{NOEXPR}
335+ Return a regular expression that can be used with the regex(3)
336+ function to recognize a negative response to a yes/no question.
337+ \end {datadesc }
338+
339+ \begin {datadesc }{CRNCYSTR}
340+ Return the currency symbol, preceded by "-" if the symbol should
341+ appear before the value, "+" if the symbol should appear after the
342+ value, or "." if the symbol should replace the radix character.
343+ \end {datadesc }
344+
345+ \begin {datadesc }{ERA}
346+ The return value represents the era used in the current locale.
347+
348+ Most locales do not define this value. An example of a locale which
349+ does define this value is the Japanese one. In Japan, the traditional
350+ representation of dates includes the name of the era corresponding to
351+ the then-emperor's reign.
352+
353+ Normally it should not be necessary to use this value directly.
354+ Specifying the \code {E} modifier in their format strings causes the
355+ \function {strftime} function to use this information. The format of the
356+ returned string is not specified, and therefore you should not assume
357+ knowledge of it on different systems.
358+ \end {datadesc }
359+
360+ \begin {datadesc }{ERA_YEAR}
361+ The return value gives the year in the relevant era of the locale.
362+ \end {datadesc }
363+
364+ \begin {datadesc }{ERA_D_T_FMT}
365+ This return value can be used as a format string for
366+ \function {strftime} to represent dates and times in a locale-specific
367+ era-based way.
368+ \end {datadesc }
369+
370+ \begin {datadesc }{ERA_D_FMT}
371+ This return value can be used as a format string for
372+ \function {strftime} to represent time in a locale-specific era-based
373+ way.
374+ \end {datadesc }
375+
376+ \begin {datadesc }{ALT_DIGITS}
377+ The return value is a representation of up to 100 values used to
378+ represent the values 0 to 99.
379+ \end {datadesc }
380+
262381Example:
263382
264383\begin {verbatim }
0 commit comments