GENCAT(1) | User Commands | GENCAT(1) |
gencat - generate a formatted message catalog
gencat catfile msgfile...
The gencat command merges the message text source file(s) msgfile into a formatted message database catfile. The database catfile is created if it does not already exist. If catfile does exist, its messages are included in the new catfile. If set and message numbers collide, the new message-text defined in msgfile replaces the old message text currently contained in catfile. The message text source file (or set of files) input to gencat can contain either set and message numbers or simply message numbers, in which case the set NL_SETD (see nl_types.h(3HEAD)) is assumed.
The format of a message text source file is defined as follows. Note that the fields of a message text source line are separated by a single ASCII space or tab character. Any other ASCII spaces or tabs are considered as part of the subsequent field.
$set n comment
$delset n comment
$comment
m message-text
$quote c
Empty lines in a message text source file are ignored.
Text strings can contain the special characters and escape sequences defined in the following table:
Description | Symbol | Sequence |
newline | NL(LF) | \n |
horizontal tab | HT | \t |
vertical tab | VT | \v |
backspace | BS | \b |
carriage return | CR | \r |
form feed | FF | \f |
backslash | \ | \\ |
bit pattern | ddd | \ddd |
The escape sequence \ddd consists of backslash followed by 1, 2 or 3 octal digits, which are taken to specify the value of the desired character. If the character following a backslash is not one of those specified, the backslash is ignored.
Backslash followed by an ASCII newline character is also used to continue a string on the following line. Thus, the following two lines describe a single message string:
1 This line continues \ to the next line
which is equivalent to:
1 This line continues to the next line
The following operands are supported:
catfile
msgfile
See environ(7) for descriptions of the following environment variables that affect the execution of gencat: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH.
The following exit values are returned:
0
>0
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
CSI | enabled |
Interface Stability | Standard |
mkmsgs(1), catgets(3C), catopen(3C), gettxt(3C), nl_types.h(3HEAD), attributes(7), environ(7), standards(7)
February 1, 1995 | OmniOS |