From 8dc83d4e482c8c4ca5849065e9edb4334862e97d Mon Sep 17 00:00:00 2001 From: Wei-keng Liao Date: Thu, 19 Oct 2017 12:37:00 -0500 Subject: [PATCH] utr8proc has legalized two code positions --- nc_test/tst_names.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nc_test/tst_names.c b/nc_test/tst_names.c index ad4cd5226..24286f1a3 100644 --- a/nc_test/tst_names.c +++ b/nc_test/tst_names.c @@ -197,9 +197,12 @@ main(int argc, char **argv) "x\xED\xAE\x80\xED\xB0\x80", "x\xED\xAE\x80\xED\xBF\xBF", "x\xED\xAF\xBF\xED\xB0\x80", - "x\xED\xAF\xBF\xED\xBF\xBF", - "x\xEF\xBF\xBE", /* other illegal code positions */ + "x\xED\xAF\xBF\xED\xBF\xBF" +#if 0 + /* The two below is legal since UTF8PROC_VERSION_MAJOR 2 */ + "x\xEF\xBF\xBE", /* other illegal code positions */ "x\xEF\xBF\xBF" +#endif }; int nerrs=0; int i, j;