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
;
32 outbytes
= 4 * sizeof (wchar_t); /* "Argument list too long" error. */
33 n
= iconv (cd
, &inbuf
, &inbytes
, &outbuf
, &outbytes
);
36 printf ("iconv: %m\n");
45 #define TEST_FUNCTION do_test ()
46 #include "../test-skeleton.c"