Software Internationalization Guide

The HP Internationalization Subsystem
Software Internationalization Guide526225-002
4-15
Testing Internationalized Applications
To compile an internationalized application in the TNS/R native environment, run the
native c89 utility using this command:
c89 options myapp.c
Compiling in the TNS Environment
In the OSS TNS environment, c89 provides an interface to these components of the
C compilation system:
C language preprocessor
C compiler
Binder
Accelerator
SQL/MP compiler
Before compiling an internationalized TNS application, use the VPROC command to
ensure that that the appropriate library is available:
VPROC $SYSTEM.SYSTEM.LI18N
If your TNS application requires the locales included in the T8372 libraries, you must
use the nonnative c89 utility with the -l library operand. The -l operand directs c89
to use a specific library when binding your application. For example:
/nonnative/bin/ c89 options myapp.c -l i18n
In this example, c89 compiles the application myapp.c and then dynamically binds the
program, using the library defined in libi18n.so. If the appropriate locale library is
not on the system when you use the c89 -l operand, the application defaults to the
C/POSIX locale.
The c89 utility performs dynamic linking using the TNS shared run-time library that
includes the C/POSIX locale by default. If your application requires only the C/POSIX
locale, you do not need to specify a library when using the c89 utility.
Testing Internationalized Applications
Testing internationalized applications is a key part of ensuring that an application will
survive in a global market. To test applications thoroughly, begin early in the product
lifecycle. Review product specifications for internationalization and localization issues,
then begin testing the internationalization and localization aspects of the product as
early as possible.
Because the internationalization functions are part of an application’s core, solving
problems early helps ensure that the overall product meets quality standards and that it
is fully localizable.
This section offers testing guidelines and discusses how to verify that your application
is successfully internationalized and is functioning properly for localization.