HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

l
localedef(4) localedef(4)
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 char-
acter. 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 char-
map file to be used with the -u option of the localedef com-
mand.
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 char-
map 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
keywords.
These are not character constants. It is an error if such an inter-
nally defined symbolic name collides with one defined in a charmap
file.
integer lists
Integer list
operands consists of one or more decimal digits separated by semicolons.
224 Hewlett-Packard Company 7 HP-UX 11i Version 3: February 2007