Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ langinfo(5) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

localeconv(3C)

strfmon(3C)

strftime(3C)

langinfo(5)                                                     langinfo(5)

NAME
     langinfo - language information constants

SYNOPSIS
     #include <langinfo.h>

DESCRIPTION
     This header file contains the constants used to identify data objects
     for the language environment [see nllanginfo(3C)]. The type of the
     constants, nlitem, is defined as described in nltypes.h.

     The entries under Category indicate in which setlocale() category each
     item is defined.
     ______________________________________________________________________
    | Constant   |  Category   |  Meaning                                 |
    |____________|_____________|__________________________________________|
    | CODESET    |  LCCTYPE   |  codeset name                            |
    | DTFMT    |  LCTIME    |  string for formatting date and time     |
    | DFMT      |  LCTIME    |  date format string                      |
    | TFMT      |  LCTIME    |  time format string                      |
    | TFMTAMPM |  LCTIME    |  a.m. or p.m. time format string         |
    | AMSTR     |  LCTIME    |  Ante Meridian affix                     |
    | PMSTR     |  LCTIME    |  Post Meridian affix                     |
    | DAY1      |  LCTIME    |  name of the first day of the week (e.g. |
    |            |             |  Sunday)                                 |
    | DAY2      |  LCTIME    |  name of the second day of the week (e.g.|
    |            |             |  Monday)                                 |
    | DAY3      |  LCTIME    |  name of the third day of the week (e.g. |
    |            |             |  Tuesday)                                |
    | DAY4      |  LCTIME    |  name of the fourth day of the week (e.g.|
    |            |             |  Wednesday)                              |
    | DAY5      |  LCTIME    |  name of the fifth day of the week (e.g. |
    |            |             |  Thursday)                               |
    | DAY6      |  LCTIME    |  name of the sixth day of the week (e.g. |
    |            |             |  Friday)                                 |
    | DAY7      |  LCTIME    |  name of the seventh day of the week     |
    |            |             |  (e.g. Saturday)                         |
    | ABDAY1    |  LCTIME    |  abbreviated name of the first day of the|
    |            |             |  week                                    |
    | ABDAY2    |  LCTIME    |  abbreviated name of the second day of   |
    |            |             |  the week                                |
    | ABDAY3    |  LCTIME    |  abbreviated name of the third day of the|
    |            |             |  week                                    |
    | ABDAY4    |  LCTIME    |  abbreviated name of the fourth day of   |
    |            |             |  the week                                |
    | ABDAY5    |  LCTIME    |  abbreviated name of the fifth day of the|
    |            |             |  week                                    |
    | ABDAY6    |  LCTIME    |  abbreviated name of the sixth day of the|
    |            |             |  week                                    |
    |____________|_____________|__________________________________________|





Page 1                       Reliant UNIX 5.44                Printed 11/98

langinfo(5)                                                     langinfo(5)

     ______________________________________________________________________
    | Constant   |  Category   |  Meaning                                 |
    |____________|_____________|__________________________________________|
    | ABDAY7    |  LCTIME    |  abbreviated name of the seventh day of  |
    |            |             |  the week                                |
    | MON1      |  LCTIME    |  name of the first month of the year     |
    | MON2      |  LCTIME    |  name of the second month                |
    | MON3      |  LCTIME    |  name of the third month                 |
    | MON4      |  LCTIME    |  name of the fourth month                |
    | MON5      |  LCTIME    |  name of the fifth month                 |
    | MON6      |  LCTIME    |  name of the sixth month                 |
    | MON7      |  LCTIME    |  name of the seventh month               |
    | MON8      |  LCTIME    |  name of the eighth month                |
    | MON9      |  LCTIME    |  name of the ninth month                 |
    | MON10     |  LCTIME    |  name of the tenth month                 |
    | MON11     |  LCTIME    |  name of the eleventh month              |
    | MON12     |  LCTIME    |  name of the twelfth month               |
    | ABMON1    |  LCTIME    |  abbreviated name of the first month     |
    | ABMON2    |  LCTIME    |  abbreviated name of the second month    |
    | ABMON3    |  LCTIME    |  abbreviated name of the third month     |
    | ABMON4    |  LCTIME    |  abbreviated name of the fourth month    |
    | ABMON5    |  LCTIME    |  abbreviated name of the fifth month     |
    | ABMON6    |  LCTIME    |  abbreviated name of the sixth month     |
    | ABMON7    |  LCTIME    |  abbreviated name of the seventh month   |
    | ABMON8    |  LCTIME    |  abbreviated name of the eighth month    |
    | ABMON9    |  LCTIME    |  abbreviated name of the ninth month     |
    | ABMON10   |  LCTIME    |  abbreviated name of the tenth month     |
    | ABMON11   |  LCTIME    |  abbreviated name of the eleventh month  |
    | ABMON12   |  LCTIME    |  abbreviated name of the twelfth month   |
    | ERA        |  LCTIME    |  era description segments                |
    | ERADFMT  |  LCTIME    |  era date format string                  |
    | ERADTFMT|  LCTIME    |  era date and time format string         |
    | ERATFMT  |  LCTIME    |  era time format string                  |
    | ALTDIGITS |  LCTIME    |  alternative symbols for digits          |
    | RADIXCHAR  |  LCNUMERIC |  radix character                         |
    | THOUSEP    |  LCNUMERIC |  separator for thousands                 |
    | YESEXPR    |  LCMESSAGES|  affirmative response expression         |
    | NOEXPR     |  LCMESSAGES|  negative response expression            |
    | YESSTR     |  LCMESSAGES|  affirmative response for yes/no queries |
    | NOSTR      |  LCMESSAGES|  negative response for yes/no queries    |
    | CRNCYSTR   |  LCMONETARY|  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             |
    |____________|_____________|__________________________________________|








Page 2                       Reliant UNIX 5.44                Printed 11/98

langinfo(5)                                                     langinfo(5)

     If the locale's value for pcsprecedes and ncsprecedes do not
     match, the value of nllanginfo(CRNCYSTR) is unspecified.

     The langinfo.h header declares the following as a function:

     char *nllanginfo(nlitem item);

     Inclusion of the <langinfo.h> header may also make visible all symbols
     from <nltypes.h>.

APPLICATION USAGE
     Users are advised to use the strftime() function to access date and
     time information defined in category LCTIME. The localeconv() func-
     tion should be used to access information corresponding to RADIXCHAR,
     THOUSEP and CRNCYSTR.

SEE ALSO
     localeconv(3C), nllanginfo(3C), strfmon(3C), strftime(3C).

     "Programmer's Guide: Internationalization - Localization".


































Page 3                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026