findmsg(1)findmsg(1)NAME
findmsg, dumpmsg - create message catalog file for modification
SYNOPSIS
sym] sym]] file ...
file ...
DESCRIPTION
The command extracts messages from a C program source file and writes
them to the standard output in a format suitable for input to (see gen‐
cat(1)). The input file will be preprocessed using (see cpp(1)) in
order to select print specifiers and handle conditional primitives. If
multiple input files are specified and the option is not used, the
files are processed sequentially such that message catalog comment
lines identifying the input file are written before the output for each
input file.
The command scans the source files for uncommented lines with one of
the following three formats embedded within it:
or any combination of these formats wholly contained on a single physi‐
cal line. could be a string constant or a combination of string con‐
stants and print specifiers (PRI*). Any number of spaces or tabs can
separate the comment from the message. The digit n, which can be any
valid message number (see gencat(1)), is combined with the message
string to produce a message catalog source line. The message source
line is assigned to the set whose number is the current value of as set
by the last directive encountered. If has not yet been defined when a
message line is found, the message is output without a set number spec‐
ification. If more than one message is found belonging to the same set
and message number, the last message found is output; any others are
silently discarded. Conditional compilation and instructions in the C
source files are ignored.
Options
recognizes the following command-line options:
Merge identically numbered sets from multiple input
files so that can process the output.
Define symbol
sym.
Cause symbol
sym to be undefined.
Consider all #ifdefs to extract messages from the input file.
Options and will be used to select print specifiers
if this option is not used.
Outputs all error messages issued by
By default, does not display the error messages
issued by
The command extracts messages from a message catalog file created by
Messages are written to standard output in a format suitable for edit‐
ing and re-input to
EXTERNAL INFLUENCES
Environment Variables
determines the interpretation of messages as single-byte and/or multi-
byte characters.
determines the language in which messages are displayed.
If or is not specified in the environment or is set to the empty
string, the value of is used as a default for each unspecified or empty
variable. If is not specified or is set to the empty string, a default
of (see lang(5)) is used instead of If any internationalization vari‐
able contains an invalid setting, and behave as if all international‐
ization variables are set to See environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
WARNINGS
The and commands are HP proprietary, not portable to other vendors'
systems, and will not be provided in future HP-UX releases.
AUTHOR
and were developed by HP.
SEE ALSOfindstr(1), gencat(1), insertmsg(1), catgets(3C).
findmsg(1)