localedef.4 (2010 09)

l
localedef(4) localedef(4)
characters, with each set in ascending order.
alpha Character codes classified as letters. Characters classified as
cntrl, digit,
punct or space cannot be specified. Characters specified as
upper and
lower classes are automatically included in this class.
print Character codes classified as printable characters. Characters specified for
upper, lower, alpha, digit
, xdigit, and punct classes and the
<space> character are automatically included. No character from the
cntrl
category can be specified.
graph Character codes classified as printable characters, except the <space> charac-
ter. In all other respect this classification is similar to the
print category.
The following two are special classifications, used to designate valid first-of-two and second-of-two
bytes. Note that these are byte classifications and not character classifications; hence, they cannot
be used with the iswctype interface (see wctype (3C)), in the same manner as the other classifications
can be used.
first Valid first bytes of two-byte characters.
second Valid second bytes of two-byte characters.
Character case conversion definitions:
toupper Lowercase to uppercase character relationships.
tolower Uppercase to lowercase character relationships.
Miscellaneous character attribute and classifications:
alt_punct String mapped into the ASCII equivalent string ‘‘b!"#$%&’()*+,-
./:;<=>?@[\]ˆ_‘{}˜’’, where b is a blank (a langinfo (5) item).
charclass Defines one or more locale-specific character class names as strings separated
by semicolons. Each named character class can then be defined subsequently
in the LC_CTYPE definition. The first character of a character class name
must be a letter and the class name cannot match any of the predefined
classifications (for example, space, letter, cntrl).
direction String operand indicates text direction (a langinfo (5) item). String operand "1"
indicates right-to-left text direction.
context String operand indicates character context analysis. String "1" indicates Ara-
bic context analysis is required.
LC_COLLATE:
The LC_COLLATE category provides collation sequence definition for relative ordering between col-
lating elements (single and multi-character collating elements) in the locale. The following key-
words belong to this category and should come between the category tag LC_COLLATE and END
LC_COLLATE. The first two keywords can be in any order, but must come before the
order_start keyword. Any number of the first two keywords can be specified.
collating-element <symbol> from string
Defines a multi-character collating element, symbol , composed of the charac-
ters in string . String is limited to two characters.
collating-symbol <symbol>
Makes symbol a collating symbol which can be used to define a place in the
collating sequence. Symbol does not represent any actual character.
order_start
Denotes the start of the collation sequence. The directives have an effect on
string collation.
The lines following the
order_start keyword and before the order_end
keyword contain collating element entries, one per line.
Operands can optionally appear after the
order_start keyword to defined
rules for string comparison using a multiple-weight scheme (if no operands are
specified, a single forward operand is assumed). The possible operands are:
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010