24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Note: For the remainder of this document, most examples of shell commands use<br />

ksh notation instead of repeating the syntax <strong>for</strong> all shells.<br />

Environment Variables <strong>for</strong> National Language Support<br />

Diagnostic messages and the listings from the compiler appear in the default<br />

language that was specified at installation of the operating system. If you want the<br />

messages and listings to appear in another language, you can set and export the<br />

following environment variables be<strong>for</strong>e executing the compiler:<br />

LANG<br />

NLSPATH<br />

Specifies the locale. A locale is divided into categories. Each<br />

category contains a specific aspect of the locale data. Setting LANG<br />

may change the national language <strong>for</strong> all the categories.<br />

Refers to a list of directory names where the message catalogs may<br />

be found.<br />

For example, to specify the Japanese locale with the <strong>IBM</strong>_eucJP code page, use the<br />

following commands from the Bourne or Korn shell:<br />

LANG=ja_JP<br />

NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/prime/%N<br />

export LANG NLSPATH<br />

Substitute any valid national language code <strong>for</strong> ja_JP, provided the associated<br />

message catalogs are installed.<br />

These environment variables are initialized when the operating system is installed<br />

and may be different from the ones that you want to use with the compiler.<br />

Each category has an environment variable associated with it. If you want to<br />

change the national language <strong>for</strong> a specific category but not <strong>for</strong> other categories,<br />

you can set and export the corresponding environment variable.<br />

For example:<br />

LC_MESSAGES<br />

Specifies the national language <strong>for</strong> the messages that are issued. It affects<br />

messages from the compiler and <strong>XL</strong>F-compiled programs, which may be<br />

displayed on the screen or stored in a listing, module, or other compiler<br />

output file.<br />

LC_TIME<br />

Specifies the national language <strong>for</strong> the time <strong>for</strong>mat category. It primarily<br />

affects the compiler listings.<br />

LC_CTYPE<br />

Defines character classification, case conversion, and other character<br />

attributes. For <strong>XL</strong> <strong>Fortran</strong>, it primarily affects the processing of multibyte<br />

characters.<br />

LC_NUMERIC<br />

Specifies the <strong>for</strong>mat to use <strong>for</strong> input and output of numeric values. Setting<br />

this variable in the shell does not affect either the compiler or <strong>XL</strong>F-compiled<br />

programs. The first I/O statement in a program sets the LC_NUMERIC<br />

category to POSIX. There<strong>for</strong>e, programs that require a different setting<br />

must reset it after this point and should restore the setting to POSIX <strong>for</strong> all<br />

I/O statements.<br />

Setting Up and Customizing <strong>XL</strong> <strong>Fortran</strong> 13

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

Saved successfully!

Ooh no, something went wrong!