Software Internationalization Guide
The HP Internationalization Subsystem
Software Internationalization Guide—526225-002
4-14
Compiling Internationalized Applications
character set or collating sequence associated with a column after the column is
created.
You can specify a different collating sequence for a sort or comparison that involves
single-byte character values within the same character set, but you cannot
automatically vary that collating sequence based on locale.
Double-byte Character Sets SQL/MP supports two double-byte character sets—HP
Kanji (KANJI) and HP Korean (KSC5601). Collation order and upshift rules for the
SQL/MP double-byte character set differ from those provided in the OSS environment.
Characters in the SQL/MP double-byte character sets always collate according to their
binary values and cannot be upshifted.
You cannot specify a different collating sequence for double-byte character sets for a
sort or comparison as you can with the SQL/MP single-byte character sets.
Date-Time Formats
SQL/MP accepts date-time values in three formats, which differ from those available to
OSS functions. SQL/MP includes a function that converts date-time values from one
SQL/MP format to another. If you store date-time values in an SQL/MP table, you
must use the SQL/MP DATEFORMAT function to retrieve and format the values, not
the OSS functions that vary by locale. SQL/MP does not recognize values from the
OSS functions as date-time information. For more information about the
DATEFORMAT function, see the SQL/MP Reference Manual.
Message Text
SQL/MP messages do not vary by locale. SQL/MP does, however, provide a DEFINE
to specify an alternate message file that contains messages in a language appropriate
for your application: =_SQL_MSG_node.
Compiling Internationalized Applications
The c89 utility enables programmers to compile internationalized, ISO-compliant C
programs. See the c89(1) reference page either online or in the Open System
Services Shell and Utilities Reference Manual for details on the c89 utility.
Compiling in the TNS/R Native Environment
In the OSS TNS/R native environment, c89 provides an interface to these
components of the C compilation system:
•
The native C compiler
•
A linking utility such as nld (for native object files that do not contain position-
independent code) or ld (for position-independent code files)
•
The SQL/MP compiler
•
The SQL/MX preprocessor and compiler