16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gencat<br />

Description Sequence<br />

Vertical tab \v<br />

These sequences must be encoded as singlebyte characters.<br />

The escape sequence \ddd consists of backslash followed by one, two, or three<br />

octal digits, which are taken to specify the value of the desired character. If the<br />

character following a backslash is not one of those specified, the backslash is<br />

ignored.<br />

A backslash (\) followed by a newline character is also used to continue a string on<br />

the following line. Thus the following two lines describe a single message string:<br />

1 This line continues \<br />

to the next line<br />

which is equivalent to:<br />

1 This line continues to the next line<br />

Portability of Message Catalogs<br />

gencat works with the z/<strong>OS</strong> C runtime library function catgets() to correctly display<br />

message text in the locale that the C program using catgets() is running in. gencat<br />

adds information to the CatalogFile about the codeset that was in effect when<br />

gencat processed the CatalogFile. gencat should be run with the same locale that<br />

the recipients of the messages will be using. This should be the same locale that<br />

was used to create the message text in MessageFile.<br />

Example<br />

Localization<br />

Exit Values<br />

Portability<br />

Message catalogs produced by gencat are binary-encoded, meaning that their<br />

portability cannot be guaranteed between systems. Thus, just as C programs need<br />

to be recompiled, so message catalogs must be re-created via gencat when moved<br />

to another system.<br />

To generate a test.cat catalog from the source file test.msg, enter:<br />

gencat test.cat test.msg<br />

gencat uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

v NLSPATH<br />

0 Successful completion<br />

1 An error occurred<br />

X/Open Portability Guide.<br />

294 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!