mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 19:51:11 +00:00
89a4f6ff1f
2000-07-07 Ulrich Drepper <drepper@redhat.com> * locale/programs/locale.c (write_locales): Don't simply add all directories found in the subdir, test whether at least the LC_CTYPE file is in there.
54 lines
1.5 KiB
C
54 lines
1.5 KiB
C
/*
|
|
* TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
|
|
*
|
|
* FILE: dat_wctob.c
|
|
*
|
|
* ISW*: int wctob( wint_t wc );
|
|
*/
|
|
|
|
|
|
TST_WCTOB tst_wctob_loc [] = {
|
|
|
|
{ { Twctob, TST_LOC_de },
|
|
{
|
|
{ { WEOF }, { 0,0, 1, EOF } },
|
|
{ { 0x0020 }, { 0,0, 1, 0x20 } },
|
|
{ { 0x0061 }, { 0,0, 1, 0x61 } },
|
|
{ { 0x0080 }, { 0,0, 1, 0x80 } },
|
|
{ { 0x00C4 }, { 0,0, 1, 0xC4 } },
|
|
{ { 0x30C4 }, { 0,0, 1, EOF } },
|
|
{ is_last: 1 } /* Last element. */
|
|
}
|
|
},
|
|
{ { Twctob, TST_LOC_enUS },
|
|
{
|
|
{ { WEOF }, { 0,0, 1, EOF } },
|
|
{ { 0x0020 }, { 0,0, 1, 0x20 } },
|
|
{ { 0x0061 }, { 0,0, 1, 0x61 } },
|
|
#ifdef SHOJI_IS_RIGHT
|
|
{ { 0x0080 }, { 0,0, 1, 0x80 } },
|
|
{ { 0x00C4 }, { 0,0, 1, 0xC4 } },
|
|
#else
|
|
/* XXX These are no valid characters. */
|
|
{ { 0x0080 }, { 0,0, 1, EOF } },
|
|
{ { 0x00C4 }, { 0,0, 1, EOF } },
|
|
#endif
|
|
{ { 0x30C4 }, { 0,0, 1, EOF } },
|
|
{ is_last: 1 } /* Last element. */
|
|
}
|
|
},
|
|
{ { Twctob, TST_LOC_eucJP },
|
|
{
|
|
{ { WEOF }, { 0,0, 1, EOF } },
|
|
{ { 0x0020 }, { 0,0, 1, 0x20 } },
|
|
{ { 0x0061 }, { 0,0, 1, 0x61 } },
|
|
{ { 0x0080 }, { 0,0, 1, 0x80 } },
|
|
{ { 0x00FF }, { 0,0, 1, EOF } },
|
|
{ { 0x00C4 }, { 0,0, 1, EOF } },
|
|
{ { 0x30C4 }, { 0,0, 1, EOF } },
|
|
{ is_last: 1 } /* Last element. */
|
|
}
|
|
},
|
|
{ { Twctob, TST_LOC_end } }
|
|
};
|