7
Note
We recommend that you use the program name as the name
argument supplied to catopen. This provides a generic
descriptor of the message catalog to open. At run time your
program selects the particular message catalog supporting the
user's language according to the current setting of LANG and the
path(s) specified by environmental variable NLSPATH.
Recommended Initialization
Use setlocale and catopen to initialize your program. For most applications,
the following initialization is recommended:
#include <nl_types.h>
if (
!
setlocale(LC_ALL,
1111) ) {
else
fputs("setlocale failed,
continuing with \"C\II locale.", stderr);
putenv(IILC_ALL=");
catd = (nl_catd)-l;
}
catd = catopen (" name", 0);
7 -4 The Message Catalog System