localedef.4 (2010 09)

l
localedef(4) localedef(4)
names separated by semicolons, or a character-code range consisting of a constant or
symbolic name followed by an ellipsis followed by another constant or symbolic name.
The constant preceding the ellipsis must have a smaller code value than the constant fol-
lowing the ellipsis. A range represents a set of consecutive character codes. If the list is
longer than a single line, the escape character must be used at the end of each line as a
continuation character. It is an error to use any symbolic name that is not defined in an
accompanying charmap file (see charmap (4)).
string lists
string list operands consist of strings separated by semicolons. If longer than one
line, the escape character must be used for continuation.
string string
operands consist of a sequence of zero or more characters surrounded by double
quotes ("). Within a string, the double-quote character must be preceded by an escape
character. The following escape sequences also can be used:
\n newline
\t horizontal tab
\b backspace
\r carriage return
\f form feed
\\ backslash
\’ single quote
\ddd bit pattern
The escape
\ddd consists of the escape character followed by 1, 2, or 3 octal
digits specifying the value of the desired character (for other possible bit pattern
specification, see character constants below). Also, an escape character (\) and
an immediately-following newline are ignored.
Although the backslash (\) has been used for illustration, another escape character can
be substituted by the
escape_char keyword.
character constants
Constants represent character codes in the operands. They can be used in the following
forms:
decimal constants An escape character followed by a
’d’ followed by up to three
decimal digits.
octal constants An escape character followed by up to three octal digits.
hexadecimal constants An escape character followed by a
’x’ followed by two hexade-
cimal digits.
Unicode constants An escape character followed by a
’u’ followed by four to eight
hexadecimal digits which specifies a Unicode scalar value in a
charmap file to be used with the -u option of the localedef
command.
character constants A single character (for example, A) having the numerical value
of the character in the machine’s character set.
symbolic names A string enclosed between
< and > is a symbolic name.
localedef input files are recommended to be written entirely
in symbolic names, utilizing a user defined or system-supplied
charmap file. This aids portability of localedef input files
between different encoded character sets (see charmap (4)).
Symbolic names can be defined within a locale definition file by
the
collating-element and collating-symbol key-
words. These are not character constants. It is an error if such
an internally defined symbolic name collides with one defined in
a charmap file.
HP-UX 11i Version 3: September 2010 7 Hewlett-Packard Company 7