$ cat /etc/release Solaris 8 2/02 s28x_u7wos_08a INTEL Copyright 2002 Sun Microsystems, Inc. All Rights Reserved. Assembled 18 December 2001 $ cat main.c #include <errno.h> #include <stdio.h> #include <iconv.h> #include <langinfo.h> int main(){ iconv_t cd; char *l; l = nl_langinfo(CODESET); cd = iconv_open(l, "UTF8"); if( cd == (iconv_t) -1 && errno == EINVAL){ printf("can't open. "); } } $ gcc main.c $ ./a.out can't open.
9/x86 ではこれでも問題ないが,8/x86 だと "UTF-8" でないとダメなようだ。