1 /** tests for support for iso-8859-1. Extracted from string.c
6 /* SDCC has limited support for source encodings other than utf-8. This is a small test for what is there. */
8 /** tests for multibyte character sets
9 * related to bug #3506236
15 const char *str
= "ÔÂ";
17 ASSERT (str
[0] == '\xd4');
18 ASSERT (str
[1] == '\xc2');
21 // Test character constants - bug #2812.
22 void lcdWriteData (unsigned char LcdData
)
24 const unsigned char output
[] = {'a', 0xe1, 'u', 0xf5, 0};
28 ASSERT (LcdData
== output
[i
++]);
31 void lcdWriteText (char *pcText
)
35 while (pcText
[i
] != '\0') {
37 case 'ä' : lcdWriteData (0xE1);
39 case 'ü' : lcdWriteData (0xF5);
41 case 'ö' : lcdWriteData (0xEF);
43 case 'ß' : lcdWriteData (0xE2);
45 default : lcdWriteData (pcText
[i
]);
60 void testCharconst (void)
63 lcdWriteText ("aäuü");