mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
testUTF8: comment why sequences are invalid
This commit is contained in:
1 parent
e58e38f2fb
commit
bba2b1c89b
1 file changed
+6
-2
@@ -30,8 +30,12 @@ static test_utf8_entry const good_entry[] = {
|
||||
};
|
||||
|
||||
static test_utf8_char const bad_chars[] = {
|
||||
"\x80\x00\x00\x00", "\xC0\x00\x00\x00", "\xE0\x00\x00\x00",
|
||||
"\xE0\x80\x80\x00", "\xF0\x80\x80\x80", { 0, 0, 0, 0, 0 }
|
||||
"\x80\x00\x00\x00", /* Leading continuation byte. */
|
||||
"\xC0\x00\x00\x00", /* Overlong encoding and missing continuation byte. */
|
||||
"\xE0\x00\x00\x00", /* Missing continuation bytes. */
|
||||
"\xE0\x80\x80\x00", /* Overlong encoding. */
|
||||
"\xF0\x80\x80\x80", /* Overlong encoding. */
|
||||
{ 0, 0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
static void report_good(bool passed, test_utf8_char const c)
|
||||
|
||||
Reference in new issue
Block a user