Compiles or generates a UCS-2 (Unicode) conversion table for use by the iconv library.
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.
Item | Description |
---|---|
-f SrcFile | Specifies the conversion table source file. If this flag is not used, standard input is read. |
-v | Causes output of the processed file statements. |
UconvTable | Specifies the path name of the compiled table created by the uconvdef command. This should be the name of the code set that defines conversions into and out of UCS-2. |
The following exit values are returned:
Item | Description |
---|---|
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.