Converter programs versus tables
Converter programs are executable functions that convert data according to a set of rules. Converter tables are single-byte conversion tables that perform stateless conversions.
Programs and tables are in separate directories, as follows:
Directory | Description |
---|---|
/usr/lib/nls/loc/iconv | Converter programs |
/usr/lib/nls/loc/iconvTable | Converter tables |
After a converter program is compiled and linked with the libiconv.a library, the program is placed in the /usr/lib/nls/loc/iconv directory.
To build a table converter, build a source converter table file. Use the genxlt command to compile translation tables into a format understood by the table converter. The output file is then placed in the /usr/lib/nls/loc/iconvTable directory.