HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)
i
iconv(3C) iconv(3C)
Or compile with CCOPTS and LDOPTS:
export CCOPTS="-Wl,-a,archive
options -Wl,-E -l:libdld.sl"
export LDOPTS="
options -E +n -l:libdld.sl"
cc -o
outfile source
The option -Wl,-a,archive
is positionally dependent and should occur at the beginning of the compile
line. For optimum compatibility in future releases, you should avoid using archive libc with other shared
libraries except for libdld.sl as needed above.
There is a corner-case situation for multi-byte characters that is not correctly handled by
iconv(). If the
last character in the file being converted is an invalid multi-byte character,
iconv() returns [EINVAL]
instead of [EILSEQ]. The application can get around this by checking whether EOF is reached or if this is
the last buffer being converted. In this case, [EINVAL] should be treated as [EILSEQ].
AUTHOR
iconv() was developed by HP.
FILES
/usr/lib/nls/iconv/system.config.iconv
System iconv configuration file containing codeset
names supported by the operating system.
/usr/lib/nls/iconv/config.iconv
User customizable iconv configuration file containing
additional codeset names.
iconv_open() searches the codeset names first in
/usr/lib/nls/iconv/system.config.iconv
and then in
/usr/lib/nls/iconv/config.iconv
to check
if the requested conversion is supported. If so,
iconv_open() determines which table and/or
method to use for the conversion.
/usr/lib/nls/iconv/tables
Directory containing tables used for conversion.
/usr/lib/nls/iconv/methods
Directory containing methods used for conversion.
SEE ALSO
genxlt(1), iconv(1), thread_safety(5).
HP-UX 11.0 - 11i Internationalization Features White Paper at http://docs.hp.com
STANDARDS CONFORMANCE
iconv_open() : XPG4
iconv(): XPG4
iconv_close(): XPG4
664 Hewlett-Packard Company − 5 − HP-UX 11i Version 3: February 2007