1 /* Test case by Miloslav Trmac <mitr@volny.cz>. */
12 if (setlocale (LC_CTYPE
, "de_DE.UTF-8") == NULL
)
14 puts ("setlocale failed");
18 if (mbtowc (&wc
, "\xc3\xa1", MB_CUR_MAX
) != 2 || wc
!= 0xE1)
20 puts ("1st mbtowc failed");
24 if (mbtowc (&wc
, "\xc3\xa1", SIZE_MAX
) != 2 || wc
!= 0xE1)
26 puts ("2nd mbtowc failed");