HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)

l
localedef(4) localedef(4)
NAME
localedef - format and semantics of locale definition file
DESCRIPTION
This is a description of the syntax and meaning of the locale definition that is provided as input to the
localedef command to create a locale (see localedef(1M)).
The following is a list of category tags, keywords and subsequent expressions which are recognized by
localedef. The order of keywords within a category is irrelevant with the exception of the
copy key-
word and other exceptions noted under the
LC_COLLATE description. (Note that, as a convention, the
category tags are composed of uppercase characters, while the keywords are composed of lowercase charac-
ters).
Category Tags and Keywords
The following keywords do not belong to any category and should appear in the beginning of the locale
definition file:
comment_char
Single character indicating the character to be interpreted as starting a comment line within the
locale definition file. This character should be in the first column of a comment line. The default
comment_char is #. All lines with a comment_char in the first column are ignored.
escape_char
A single character indicating the character to be interpreted as an escape character within the
script. The default escape_char is \. escape_char is used to escape localedef metacharacters to
remove special meaning and in the character constant decimal, octal, and hexadecimal formats.
It is also used to continue a line onto the next, if escape_char is the last character on the line
(before the new-line character).
The following keywords can be used in any category:
copy
A string naming another valid locale available on the system. This causes the category in the
locale being created to be a copy of the same category in the named locale. Since the
copy key-
word defines the entire category, if used, it must be the only keyword in the category.
The following six categories are recognized:
LC_CTYPE:
This category defines character classification, case conversion and other character attributes. The fol-
lowing predefined character classifications are recognized:
upper Character codes classified as uppercase letters. Characters specified in the
cntrl, digit, punct or space classifications cannot be specified in this
category.
lower Character codes classified as lowercase letters. Same restrictions applicable to
the upper category apply to this classification.
digit Character codes classified as numeric. Only ten characters in contiguous ascend-
ing sequence by numerical value can be specified. Alternative digits cannot be
specified here.
space Character codes classified as white-space. No character specified for the upper,
lower, alpha, digit, graph or xdigit categories can be included in this
classification.
punct Character codes classified as punctuation characters. No character included in
the upper, lower, alpha, digit, cntrl, xdigit or space categories
can be specified.
cntrl Character codes classified as control characters. No character included in the
upper, lower, alpha, digit, punct, graph, print or xdigit can be
included here.
blank Character codes classified as blank characters. The <space> and <tab> charac-
ters are automatically included.
xdigit Character codes classified as hexadecimal digits. Only the characters defined for
the digit class can be specified, followed by one or more sets of six characters,
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 4155