Software Internationalization Guide
The HP Internationalization Subsystem
Software Internationalization Guideā526225-002
4-10
Internationalization Functions and COBOL85
READUPDATE(rf_num, r_buf, &read_cnt);
/* Retrieve the message tag */
FILE_GETRECEIVEINFO_(receive_info);
/* Change locale based on the received message's locale */
if (setlocale_from_msg(receive_info[2]) != NULL)
{
/* Perform operations in the locale received from msg */
}
/* Restore the server's locale */
server_lc = setlocale(LC_ALL, server_lc);
}
Internationalization Functions and COBOL85
C functions can be called from COBOL programs. However, HP COBOL is not locale-
sensitive and is not extended for use of the OSS internationalization functions. For
more information about COBOL85 internationalization features, see the COBOL85 for
NonStop Systems Manual.
Character Sets and Collating Sequences
The COBOL compilers do not support all character sets supported by OSS.
Only the ASCII and EBCDIC single-byte character sets are directly supported; user-
defined character code sets can be defined through the ALPHABET clause. National
litrerals and PICTURE character strings for national data items allow support for non-
Roman character sets such as the Japanese Kanji alphabet in alphanumeric data;
national literals contain two bytes per character but do not directly correspond to
multibyte character sets as defined for OSS locales.
HP COBOL compilers support alphabet names for the following Roman-derived native
character sets in the Environment Divisionās Configuration Section SPECIAL-NAMES
paragraph:
These alphabet names can be used in the PROGRAM COLLATING SEQUENCE
clause of the OBJECT-COMPUTER paragraph, the COLLATING SEQUENCE phrase
Resource Name Alphabets
DANSK-NORSK Danish, Norwegian
DEUTSCH German
ESPANOL Spanish
FRANCAIS-AZ French (AZERTY keyboard)
FRANCAIS-QW French (QWERTY keyboard)
SVENSK-SUOMI Swedish, Finnish
UK United Kingdom
USASCII United States ASCII