Software Internationalization Guide

POSIX and XPG Internationalization Model
Software Internationalization Guide526225-002
3-12
Creating Source-Code Files of Code-Set Conversion
Tables
Creating Source-Code Files of Code-Set Conversion Tables
A source-code file of code-set conversion tables contains the original code set values
and their corresponding target code set values. Here is an excerpt from a source file of
code-set conversion tables to convert the IBM 850 code set to the ISO 8859-1
code set:
0x80 0xc7 C cedilla
0x81 0xfc u diaeresis
0x82 0xe9 e acute
0x83 0xe2 a circumflex
0x84 0xe4 a diaeresis
The first column contains entries from the IBM 850 code set. The second column
contains values that correspond to the ISO 8859-1 code set. The third column is a
comment specifying the character that is mapped to the values.
Generating Code-Set Conversion Tables
The genxlt utility is used to generate code-set conversion tables for most single-byte
and multibyte code sets. Input to genxlt is the source-code file of code-set
conversion tables. The output of genxlt is the code-set conversion table.
The naming convention for the code-set conversion table is the concatenation of the
source code-set name to the target code-set name. For example:
IBM-850_ISO8859-1
is the name of the code-set conversion table when the input to the genxlt utility is the
source-code file of code-set conversion tables for defining conversion of the IBM 850
code set to the ISO 8859-1 code set.
Figure 3-3 on page 3-13 shows the generation of a code-set conversion table.
See the genxlt(1) reference page either online or in the Open System Services
Shell and Utilities Reference Manual for more information about the utility.