1 /* Test case by yaoz@nih.gov. */
20 strcpy (utf8, "abcd");
22 /* From UTF8 to UCS4. */
23 cd = iconv_open ("UCS4", "UTF8");
24 if (cd == (iconv_t) -1)
26 perror ("iconv_open");
32 outbuf = (char *) ucs4;
33 outbytes = 4 * sizeof (wchar_t); /* "Argument list too long" error. */
34 n = iconv (cd, &inbuf, &inbytes, &outbuf, &outbytes);
37 printf ("iconv: %m\n");