Installation guide

LANG controls all categories of an application’s locale. However, you can
override the setting of LANG by defining one of the environment
variables that control a specific category ( LC_COLLATE, LC_CTYPE, and
so on).
LC_ALL controls all categories of an application’s locale. Unlike LANG,
you cannot override the setting of LC_ALL by defining one of the
environment variables that control a specific category.
LC_COLLATE controls the collation category of the application’s locale.
The collation category affects the operation of the strcoll and
strxfrm library routines.
LC_CTYPE controls the character classification category of the
application’s locale. This variable affects the operation of the isdigit
and isalpha library routines, among others.
LC_NUMERIC affects the radix and thousands separator character as it
is used by the printf and scanf library routines.
LC_TIME affects the behavior of the strftime library routine.
LC_MONETARY affects what the strmon library routine returns as the
format for monetary values.
LC_MESSAGES affects the format of application messages and the string
the user can specify to answer a yes or no question.
The only difference between these environment variables on a DIGITAL
UNIX system and on an ULTRIX system is the naming convention used for
the locales. For information about defining these environment variables,
see Section 3.1.3.
6.10.2.2 The setlocale Routine
To determine what locale has been set, you call the setlocale routine in
your program. This routine has the following format:
setlocale ( category, locale)
The
category
argument specifies the category for which you are
requesting locale information, that is, LANG, LC_COLLATE, LC_CTYPE, and
so on. The
locale
argument is usually an empty string ("") that causes
the setlocale routine to determine the setting of a category by reading
the corresponding environment variable. However, you can specify a locale
name in this argument. If you do, be aware that the naming convention for
the DIGITAL UNIX locales is different from the ULTRIX naming
convention. For information about the names of DIGITAL UNIX locales,
see the Technical Overview.
6–22 Overview of the DIGITAL UNIX Programming Environment