about summary refs log tree commit diff
path: root/localedata/tests-mbwc/dat_wctob.c
blob: 5c1f0fb2761e5fe745bca81da32f048057870172 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 *  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,	 1, EOF	       }  },
	  {  { 0x0020 }, { 0,	 1, 0x20       }  },
	  {  { 0x0061 }, { 0,	 1, 0x61       }  },
	  {  { 0x0080 }, { 0,	 1, 0x80       }  },
	  {  { 0x00C4 }, { 0,	 1, 0xC4       }  },
	  {  { 0x30C4 }, { 0,	 1, EOF	       }  },
	  {  .is_last = 1 } /* Last element.  */
	}
    },
    {	{ Twctob, TST_LOC_enUS },
	{
	  {  { WEOF   }, { 0,	 1, EOF	       }  },
	  {  { 0x0020 }, { 0,	 1, 0x20       }  },
	  {  { 0x0061 }, { 0,	 1, 0x61       }  },
	  /* XXX These are no valid characters.  */
	  {  { 0x0080 }, { 0,	 1, EOF        }  },
	  {  { 0x00C4 }, { 0,	 1, EOF        }  },
	  {  { 0x30C4 }, { 0,	 1, EOF	       }  },
	  {  .is_last = 1 } /* Last element.  */
	}
    },
    {	{ Twctob, TST_LOC_eucJP },
	{
	  {  { WEOF   }, { 0,	 1, EOF	       }  },
	  {  { 0x0020 }, { 0,	 1, 0x20       }  },
	  {  { 0x0061 }, { 0,	 1, 0x61       }  },
	  {  { 0x0080 }, { 0,	 1, 0x80       }  },
	  {  { 0x00FF }, { 0,	 1, EOF        }  },
	  {  { 0x00C4 }, { 0,	 1, EOF	       }  },
	  {  { 0x30C4 }, { 0,	 1, EOF	       }  },
	  {  .is_last = 1 } /* Last element.  */
	}
    },
    {	{ Twctob, TST_LOC_end } }
};