Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

POSIX or C locale

&pagelevel(5)&pagelevel

All XPG4 Version 2-conformant systems support the POSIX locale, which is also known as the
C locale. The POSIX locale is the default locale for C programs at startup if setlocale() is not called.

The POSIX locales C, De, De.EDF04F, De_DE.EDF04, De.EDF04@euro, De_DE.EDF04@EU, En_US.EDF04 and POSIX exist. The categories are defined as follows for the POSIX locales:

LC_MESSAGES The constants defined in langinfo.h have the following values:

LC_COLLATE

The collation sequence for the characters specified in the table (Portable character set) corresponds to the order given in the table. This affects only the functions strcoll() and strxfrm()..

LC_CTYPE

The classification corresponds to the EBCDIC definition of the individual characters (EBCDIC.DF.03-IRV, international version).

LC_NUMERIC

The components defined in localeconv() have the following values:

localeconv component

Value of the POSIX locale

decimal_point

"<period>"

thousands_sep

""

grouping

""

LC_MESSAGES              

The constants defined in langinfo.h have the following values:

langinfo constant

Value

YESEXPR

"^[yY]"

NOEXPR

"^[nN]"

YESSTR

Wird zukünftig vom X/Open-Standard nicht mehr unterstützt.

"yes"

NOSTR

Wird zukünftig vom X/Open-Standard nicht mehr unterstützt.

"no"

LC_MONETARY              

The components defined in localeconv() have the following values:

localeconv component

Value

int_curr_symbol

""

currency_symbol

""

mon_decimal_point

""

mon_thousands_sep

""

mon_grouping

""

positive_sign

""

negative_sign

""

int_frac_digits

{CHAR_MAX}

frac_digits

{CHAR_MAX}

p_cs_precedes

{CHAR_MAX}

n_cs_precedes

{CHAR_MAX}

p_sep_by_space

{CHAR_MAX}

n_sep_by_space

{CHAR_MAX}

p_sign_pos

{CHAR_MAX}

n_sign_pos

{CHAR_MAX}

LC_TIME

The constants defined in langinfo.h have the following values:

langinfo constant

Value

D_T_FMT

"%a %b %e %H:%M:%S %Y"

D_FMT

"%m/%d/%y"

T_FMT

"%H:%M:%S"

AM_STR

"AM"

PM_STR

"PM"

T_FMT_AMPM

"%I:%M:%S %p"

DAY_1

"Sunday"

DAY_2

"Monday"

DAY_3

"Tuesday"

DAY_4

"Wednesday"

DAY_5

"Thursday"

DAY_6

"Friday"

DAY_7

"Saturday"

ABDAY_1

"Sun"

ABDAY_2

"Mon"

ABDAY_3

"Tue"

ABDAY_4

"Wed"

ABDAY_5

"Thu"

ABDAY_6

"Fri"

ABDAY_7

"Sat"

MON_1

"January"

MON_2

"February"

MON_3

"March"

MON_4

"April"

MON_5

"May"

MON_6

"June"

MON_7

"July"

MON_8

"August"

MON_9

"September"

MON_10

"October"

MON_11

"November"

MON_12

"December"

ABMON_1

"Jan"

ABMON_2

"Feb"

ABMON_3

"Mar"

ABMON_4

"Apr"

ABMON_5

"May"

ABMON_6

"Jun"

ABMON_7

"Jul"

ABMON_8

"Aug"

ABMON_9

"Sep"

ABMON_10

"Oct"

ABMON_11

"Nov"

ABMON_12

"Dec"