Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
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 definition source file 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
modified only by editing a locale definition source file and then using the localedef command
again on the new source file.
Each locale source file section defines a category of locale data. A source file should not contain
more than one section for the same category. The following standard categories are supported:
LC_COLLATE
Defines character or string collation information.
LC_CTYPE
Defines character classification, case conversion, and other character attributes.
LC_MESSAGES
Defines the format for affirmative and negative responses.
LC_MONETARY
Defines rules and symbols for formatting monetary numeric information.
LC_NUMERIC
Defines a list of rules and symbols for formatting nonmonetary numeric information.
LC_TIME
Defines a list of rules and symbols for formatting time and date information.
The category source definition 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 specified using keywords, strings, character literals, and
character symbols. Each keyword identifies either a definition 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 first 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 file should either be one of the portable character set symbols, or should
11−10 Hewlett-Packard Company 527188-003