Update UTF-8 validation checks.

This commit is contained in:
Roger A. Light
2017-07-30 21:57:43 +01:00
parent df9ad5f0bd
commit b11855821e
3 changed files with 10 additions and 8 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ int main(int argc, char *argv[])
assert_valid("2.3.2 U-0000E000 = ee 80 80 = \"\"");
assert_valid("2.3.3 U-0000FFFD = ef bf bd = \"�\"");
assert_valid("2.3.4 U-0010FFFF = f4 8f bf bf = \"ô¿¿\"");
assert_valid("2.3.5 U-00110000 = f4 90 80 80 = \"ô€€\"");
/* This used to be valid in pre-2003 utf-8 */
assert_invalid("2.3.5 U-00110000 = f4 90 80 80 = \"ô€€\"");
/* 3 Malformed sequences */
/* 3.1 Unexpected continuation bytes */