Merge branch 'feature/loose_unicode' into develop

This commit is contained in:
alisdair sullivan 2011-07-27 06:52:25 -07:00
commit 0e66a82b29
19 changed files with 228 additions and 15 deletions

View file

@ -0,0 +1 @@
"\ud83f\udfff"

View file

@ -0,0 +1,4 @@
{name, "escaped noncharacter (extended)"}.
{jsx, [{string, <<16#fffd/utf8, 16#fffd/utf8>>}, end_json]}.
{json, "escaped_noncharacter_ext.json"}.
{jsx_flags, [loose_unicode]}.

View file

@ -0,0 +1 @@
"\uffff"

View file

@ -0,0 +1,4 @@
{name, "escaped noncharacter replacement"}.
{jsx, [{string,<<16#fffd/utf8>>},end_json]}.
{json, "escaped_noncharacter_replaced.json"}.
{jsx_flags, [loose_unicode]}.

View file

@ -0,0 +1 @@
"\u0000"

View file

@ -0,0 +1,4 @@
{name, "escaped nullbyte replaced"}.
{jsx, [{string,<<16#fffd/utf8>>},end_json]}.
{json, "escaped_nullbyte_replaced.json"}.
{jsx_flags, [loose_unicode]}.

View file

@ -0,0 +1 @@
"﷐"

View file

@ -0,0 +1,3 @@
{name, "noncharacter"}.
{jsx, {error, badjson}}.
{json, "noncharacter.json"}.

View file

@ -0,0 +1 @@
"﷐"

View file

@ -0,0 +1,4 @@
{name, "noncharacter replaced"}.
{jsx, [{string,<<16#fffd/utf8>>},end_json]}.
{json, "noncharacter_replaced.json"}.
{jsx_flags, [loose_unicode]}.

View file

@ -0,0 +1 @@
"\u0000"

View file

@ -0,0 +1,4 @@
{name, "nullbyte replaced"}.
{jsx, [{string,<<16#fffd/utf8>>},end_json]}.
{json, "nullbyte_replaced.json"}.
{jsx_flags, [loose_unicode]}.

View file

@ -0,0 +1 @@
["\ud801blah"]

View file

@ -0,0 +1,3 @@
{name, "unpaired_surrogate"}.
{jsx, {error, badjson}}.
{json, "unpaired_surrogate.json"}.

View file

@ -0,0 +1 @@
["\ud801blah"]

View file

@ -0,0 +1,4 @@
{name, "unpaired surrogate replaced"}.
{jsx, [start_array,{string,<<16#fffd/utf8, "blah">>},end_array,end_json]}.
{json, "unpaired_surrogate_replaced.json"}.
{jsx_flags, [loose_unicode]}.