dbload_xlate

Description

Load a pair of character set translation tables.

Syntax

RETCODE dbload_xlate(dbproc, srv_charset, xlate_name,
                   xlt_tosrv, xlt_todisp)
 
DBPROCESS     *dbproc;
char                    *srv_charset;
char                    *xlt_name;
DBXLATE           **xlt_tosrv;
DBXLATE           **xlt_todisp;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

srv_charset

A pointer to the name of the server’s character set. dbload_xlate looks for a directory of this name in the charsets directory under the main Sybase installation directory. For example, if the server is using the iso_1 character set, dbload_xlate looks for $SYBASE/charsets/iso_1.

xlt_name

A pointer to the name of the file containing the display-specific character set. dbload_xlate looks for this file in the server character set directory.

xlt_tosrv

A pointer to a pointer to a character set translation table used to translate display-specific character strings to the server character strings. The translation table is allocated through dbload_xlate.

xlt_todisp

A pointer to a pointer to a character set translation table used to translate server character strings to display-specific character strings. The translation table is allocated using dbload_xlate.

Returns

SUCCEED or FAIL.

Usage

See also

dbfree_xlate, dbxlate