langinfo.h

The langinfo.h header file contains the declaration for the nl_langinfo() function. The header file also defines the macros that, in turn, define constants used to identify the information queried by nl_langinfo() in the current locale. The following macros are defined:

Table 1. Item Values defined in langinfo.h
Item Name Description
ABDAY_1 Abbreviated first day of the week
ABDAY_2 Abbreviated second day of the week
ABDAY_3 Abbreviated third day of the week
ABDAY_4 Abbreviated fourth day of the week
ABDAY_5 Abbreviated fifth day of the week
ABDAY_6 Abbreviated sixth day of the week
ABDAY_7 Abbreviated seventh day of the week
ABMON_1 Abbreviated first month
ABMON_2 Abbreviated second month
ABMON_3 Abbreviated third month
ABMON_4 Abbreviated fourth month
ABMON_5 Abbreviated fifth month
ABMON_6 Abbreviated sixth month
ABMON_7 Abbreviated seventh month
ABMON_8 Abbreviated eighth month
ABMON_9 Abbreviated ninth month
ABMON_10 Abbreviated tenth month
ABMON_11 Abbreviated eleventh month
ABMON_12 Abbreviated twelfth month
ALT_DIGITS String of semicolon separated alternative symbols for digits
AM_STR String for morning
CODESET Current encoded character set of the process
CRNCYSTR Local currency symbol, preceded by '-' if the symbol should appear before the value, '+' if the symbol should appear after the value, or '.' if the symbol should replace the radix character.
D_FMT String for formatting date
D_T_FMT String for formatting date and time
DAY_1 Name of the first day of the week
DAY_2 Name of the second day of the week
DAY_3 Name of the third day of the week
DAY_4 Name of the fourth day of the week
DAY_5 Name of the fifth day of the week
DAY_6 Name of the sixth day of the week
DAY_7 Name of the seventh day of the week
ERA String of semicolon separated era segments
ERA_D_FMT String for era date format
ERA_D_T_FMT String for era date and time format
ERA_T_FMT String for era time format
MON_1 Name of the first month
MON_2 Name of the second month
MON_3 Name of the third month
MON_4 Name of the fourth month
MON_5 Name of the fifth month
MON_6 Name of the sixth month
MON_7 Name of the seventh month
MON_8 Name of the eighth month
MON_9 Name of the ninth month
MON_10 Name of the tenth month
MON_11 Name of the eleventh month
MON_12 Name of the twelfth month
NOEXPR Negative response expression
NOSTR Negative response string
PM_STR String for afternoon
RADIXCHAR Radix character
T_FMT String for formatting time
T_FMT_AMPM String for formatting time in 12-hour clock format
THOUSEP Separator for thousands
YESEXPR Affirmative response expression
YESSTR affirmative response string
Note:

The YESSTR and NOSTR constants are kept for historical reasons. They were part of the Legacy Feature in Single UNIX Specification, Version 2. They have been withdrawn and are not supported as part of Single UNIX Specification, Version 3.

If it is necessary to continue using these constants in an application written for Single UNIX Specification, Version 3, define the feature test macro _UNIX03_WITHDRAWN before including any standard system headers. The macro exposes all interfaces and symbols removed in Single UNIX Specification, Version 3.

For more information about the effect of locale, see setlocale(), locale.h, or look up the individual functions in this topic. For still more information, see "Internationalization: Locales and Character Sets" in z/OS XL C/C++ Programming Guide.