1 /* Test case by yaoz@nih.gov. */
19 strcpy (utf8, "abcd");
21 /* From UTF8 to UCS4. */
22 cd = iconv_open ("UCS4", "UTF8");
23 if (cd == (iconv_t) -1)
25 perror ("iconv_open");
31 outbuf = (char *) ucs4;
33 outbytes = 5 * sizeof (wchar_t); /* Ok. */
35 outbytes = 4 * sizeof (wchar_t); /* "Argument list too long" error. */
37 n = iconv (cd, &inbuf, &inbytes, &outbuf, &outbytes);