Guardian Procedure Calls Reference Manual

MBCS_DEFAULTCHARSET_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Returned Value
Considerations
Related Programming Manual
Summary
The MBCS_DEFAULTCHARSET_ procedure returns the default multibyte character set (MBCS)
identification.
HP systems support various MBCSs in different ways. HP Kanji (Shift-JIS), Chinese Big 5, Chinese
PC, Hangul, and KSC5601 data formats are supported as internal code representations. IBM and
Fujitsu Kanji formats are supported by translation from the HP Kanji internal format.
The MBCS_DEFAULTCHARSET_ procedure returns the default MBCS internal format in use on the
system queried. The default value is hardcoded; that is, it can be changed only by reconfiguring
the system.
NOTE: Each system must have a MBCS_DEFAULTCHARSET_ specified.
Syntax for C Programmers
#include <cextdecs(MBCS_DEFAULTCHARSET_)>
__int32_t MBCS_DEFAULTCHARSET_ ( void );
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the typedef
__int32_t, which for TNS and TNS/R compiles is defined as long and for TNS/E compiles
is defined as int.
Syntax for TAL Programmers
result := MBCS_DEFAULTCHARSET_;
Returned Value
INT
Identifier of the default MBCS character set:
= No MBCS configured0
= HP Kanji1
= HP Hangul9
= HP Chinese Big 510
= HP Chinese PC11
= HP KSC560112
Considerations
HP Kanji is the default character set. This default can only be changed by reconfiguring the system.
Contact your HP representative for information on changing the default MBCS.
MBCS_DEFAULTCHARSET_ Procedure 795