isaiah / transit-erlang

transit format for erlang
MIT License
43 stars 12 forks source link

The binary sequence <<0, 96>> fails #14

Closed jlouis closed 10 years ago

jlouis commented 10 years ago

The sequence <<0, 96>> which is a \0 followed by a backquote is not parsed correctly by transit-erlang. Here is the counterexample:

13> jsx:encode(<<0, 96>>).
<<"\"\\u0000`\"">>
14> jsx:encode(<<0, 96>>).
<<"\"\\u0000`\"">>
15> jsx:decode(v(14)).
<<0,96>>
16> transit:write(<<0, 96>>).
<<"[\"~#'\",\"~\\u0000`\"]">>
17> transit:read(v(16)).  
{tagged_value,<<0>>,<<"`">>}
jlouis commented 10 years ago

This now passes.