powerpc: Fix __fesetround_inline_nocheck on POWER9+ (BZ 31682)
[glibc.git] / localedata / tests-mbwc / dat_wcwidth.c
blobec667813e274886c41d48b00767393b74beebf2b
1 /*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
4 * FILE: dat_wcwidth.c
6 * WCWIDTH: int wcwidth (wchar_t wc);
7 */
9 TST_WCWIDTH tst_wcwidth_loc [] = {
11 { Twcwidth, TST_LOC_de },
13 { /*inp*/ { 0x0000 }, /* #01 */
14 /*exp*/ { 0, 1,0, },
16 { /*inp*/ { 0x0020 }, /* #02 */
17 /*exp*/ { 0, 1,1, },
19 { /*inp*/ { 0x007F }, /* #03 */
20 /*exp*/ { 0, 1,-1, },
22 { /*inp*/ { 0x0080 }, /* #04 */
23 /*exp*/ { 0, 1,-1, },
25 { /*inp*/ { 0x00A1 }, /* #05 */
26 /*exp*/ { 0, 1,1, },
28 { /*inp*/ { 0x00C1 }, /* #06 */
29 /*exp*/ { 0, 1,1, },
31 { /*inp*/ { 0x3041 }, /* #07 */
32 /*exp*/ { 0, 1,EOF, },
34 { .is_last = 1 }
38 { Twcwidth, TST_LOC_enUS },
40 { /*inp*/ { 0x0000 }, /* #01 */
41 /*exp*/ { 0, 1,0, },
43 { /*inp*/ { 0x0020 }, /* #02 */
44 /*exp*/ { 0, 1,1, },
46 { /*inp*/ { 0x007F }, /* #03 */
47 /*exp*/ { 0, 1,-1, },
49 { /*inp*/ { 0x0080 }, /* #04 */
50 /*exp*/ { 0, 1,-1, },
52 { /*inp*/ { 0x00A1 }, /* #05 */
53 /*exp*/ { 0, 1,-1, },
55 { /*inp*/ { 0x00C1 }, /* #06 */
56 /*exp*/ { 0, 1,-1, },
58 { /*inp*/ { 0x3041 }, /* #07 */
59 /*exp*/ { 0, 1,-1, },
61 { .is_last = 1 }
65 { Twcwidth, TST_LOC_eucJP },
67 { /*inp*/ { 0x0000 }, /* #01 */
68 /*exp*/ { 0, 1,0, },
70 { /*inp*/ { 0x0020 }, /* #02 */
71 /*exp*/ { 0, 1,1, },
73 { /*inp*/ { 0x007F }, /* #03 */
74 /*exp*/ { 0, 1,-1, },
76 { /*inp*/ { 0x0080 }, /* #04 */
77 /*exp*/ { 0, 1,-1, },
79 /* XXX U00A1 is a valid character in EUC-JP. */
80 { /*inp*/ { 0x00A1 }, /* #05 */
81 /*exp*/ { 0, 1,2, },
83 /* jisx0212 */
84 { /*inp*/ { 0x00C1 }, /* #06 */
85 /*exp*/ { 0, 1,2, },
87 { /*inp*/ { 0x3041 }, /* #07 */
88 /*exp*/ { 0, 1,2, },
90 { .is_last = 1 }
94 { Twcwidth, TST_LOC_end }