localedef.4 (2010 09)

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 char-
acters).
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 for-
mats. 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
keyword 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
following 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
ascending 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
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (10 pages)