9 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL)
11 puts ("setlocale failed");
15 if (setvbuf (stdin, NULL, _IONBF, 0) != 0)
17 puts ("setvbuf failed");
24 while ((c = fgetwc (stdin)) != WEOF)
29 puts ("error on stdin");
33 const wchar_t expected[] =
35 0x00000439, 0x00000446, 0x00000443, 0x0000043a,
36 0x00000435, 0x0000043d, 0x0000000a, 0x00000071,
37 0x00000077, 0x00000065, 0x00000072, 0x00000074,
38 0x00000079, 0x0000000a
41 if (nbuf != sizeof (expected) / sizeof (expected[0])
42 || wmemcmp (expected, buf, nbuf) != 0)
44 puts ("incorrect result");
51 #define TEST_FUNCTION do_test ()
52 #include "../test-skeleton.c"