Compiles or generates a UCS-2 (Unicode) conversion table for use by the iconv library.
uconvdef [ -f SrcFile ] [ -v ] UconvTable
The uconvdef command reads SrcFile and creates a compiled conversion table in UconvTable. The SrcFile defines a mapping between UCS-2 and multibyte code sets (one or more bytes per character). The UconvTable is in a format that can be loaded by the UCSTBL conversion method located in the /usr/lib/nls/loc/uconv directory. This method uses the table to support UCS-2 conversions in both directions.
The following exit values are
returned:
0 | Successful completion. |
>0 | An error occurred. |
To access the compiled UCS-2 conversion table:
uconvdef -f IBM-850.ucmap IBM-850
mv IBM-850 /usr/lib/nls/loc/uconvTable
ln -s /usr/lib/nls/loc/uconv/UCSTBL \ /usr/lib/nls/loc/iconv/IBM-850_UCS-2
ln -s /usr/lib/nls/loc/uconv/UCSTBL \ /usr/lib/nls/loc/iconv/UCS-2_IBM-850
Note: The \ (backslash) is a line continuation character that is only needed if the command is broken into two lines.
The iconv command.
The iconv subroutine, iconv_close subroutine, iconv_open subroutine.
The unconvdef source file format.
Code Set Overview in AIX 5L Version 5.1 Kernel Extensions and Device Support Programming Concepts.
Converters Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices.
List of UCS-2 Interchange Converters in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.