Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

locale(4) OSS Shell and Utilities Reference Manual
NAME
locale - Contains one or more categories that describe a locale
DESCRIPTION
For information on writing programs that use the internationalization features of Open System
Services, refer to the Software Internationalization Guide.
A locale denition source le contains one or more categories that describe a locale. Files using
this format can be converted into a locale by using the localedef command. Locales can be
modied only by editing a locale denition source le and then using the localedef command
again on the new source le.
Each locale source le section denes a category of locale data. A source le should not contain
more than one section for the same category. The following standard categories are supported:
LC_COLLATE
Denes character or string collation information.
LC_CTYPE
Denes character classication, case conversion, and other character attributes.
LC_MESSAGES
Denes the format for afrmative and negative responses.
LC_MONETARY
Denes rules and symbols for formatting monetary numeric information.
LC_NUMERIC
Denes a list of rules and symbols for formatting nonmonetary numeric information.
LC_TIME
Denes a list of rules and symbols for formatting time and date information.
The category source denition consists of the following:
The category header (category name).
The associated keyword/value pairs that comprise the category body.
The category trailer (END category_name).
For example:
LC_CTYPE
source for LC_CTYPE category
END LC_CTYPE
The source for all of the categories is specied using keywords, strings, character literals, and
character symbols. Each keyword identies either a denition or a rule. The remainder of the
statement containing the keyword contains the operands to the keyword. Operands are
separated from the keyword by one or more spaces. A statement may be continued on the next
line by placing a \ (backslash) as the last character before the newline character that terminates
the line. Lines containing the # (comment character) in the rst column are treated as comment
lines.
A symbolic name begins with the < (left angle bracket) character and ends with the > (right angle
bracket) character. The characters between the < and the > can be any characters from the port-
able character set except for control and space characters. A symbolic name cannot exceed 32
bytes in length. For example, <A-diaeresis> is a valid symbolic name. Any symbolic name
referenced in the source le should either be one of the portable character set symbols, or should
1110 Hewlett-Packard Company 527188-003