X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fsyntax.c;h=e26b3643449452ccb457a2f8451190e70d67db26;hb=04c58b9e5fbdf3acc7565f989e5fcd11f0c23c57;hp=88db9638de9ad0dd6f8f8ba168b36026c4e71a68;hpb=e48de6be84f89636f11159b9e7ea56b6dc49d577;p=platform%2Fupstream%2Fdbus.git diff --git a/test/syntax.c b/test/syntax.c index 88db963..e26b364 100644 --- a/test/syntax.c +++ b/test/syntax.c @@ -178,12 +178,14 @@ const char * const invalid_single_signatures[] = { const char * const valid_strings[] = { "", - "\xc2\xa9", + "\xc2\xa9", /* UTF-8 (c) symbol */ + "\xef\xbf\xbe", /* U+FFFE is reserved but Corrigendum 9 says it's OK */ NULL }; const char * const invalid_strings[] = { - "\xa9", + "\xa9", /* Latin-1 (c) symbol */ + "\xed\xa0\x80", /* UTF-16 surrogates are not valid in UTF-8 */ NULL };