Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (s) setlocale_from_msg(3)
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);
}
RETURN VALUES
Upon successful completion, the string of the new locale name associated with the specified
msg_tag is returned. Otherwise, a NULL pointer will be returned. If a NULL pointer is returned,
errno is set to indicate the error.
ERRORS
If any of the following conditions occur, setlocale_from_msg( ) sets errno to the corresponding
value.
[ENOENT] This error is set if the locale is not known to the system.
[EBADF] This error is set if $RECEIVE is not open before calling this function.
[EINVAL] This error is set if $RECEIVE was not opened with the Guardian FILE_OPEN_
call option bit <13> set.
RELATED INFORMATION
Functions: setlocale(3).
STANDARDS CONFORMANCE
The setlocale_from_msg( ) function is an HP extension to the XPG4 Version 2 specification.
527187-017 Hewlett-Packard Company 6−39