HP 9000 User Manual page 84

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

Table 6·2. Categories for setlocale
Category Option
Description
LC_ALL
Affects the behavior of all categories below.
LC_COLLATE
Affects the behavior of regular expressions and the NLS string
collation functions.
LC_CTYPE
Affects the behavior of regular expressions, character
classification and conversion functions, and all routines which
process multi-byte characters.
LC_MESSAGES
Affects affirmative and negative response expressions.
LC_MONETARY
Affects the behavior of functions which handle monetary values.
LC_NUMERIC
Affects the handling of the radix character in the formatted
input/output functions, the string conversion functions, and the
numeric values found in the
localeconv
structure.
LC_TIME
Affects the behavior of time conversion functions.
The locale parameter specifies the specific language table to use as a
template for the setting of the values for the selected category. To set the
program's locale for the specified category,
setlocale
will accept the following
parameters:
Table 6·3. Locale parameters
Option
Description
locale name
If locale is a valid locale name,
setlocale
will set that part of the
NLS environment associated with category as defined for that locale.
Cor POSIX
If the value of locale is set to C,
setlocale
will set that part of the
NLS environment associated with category as defined for the "C"
locale. ("C" is a standard required by X/Open and POSIX).
"" (empty
If the value of locale is the empty string, the setting of that part of
string)
the NLS environment associated with category will depend on the
current settings of the user's environmental variables.
Developing International Software
6· 7
6

Advertisement

Table of Contents
loading

Table of Contents