alters behaviour for escaped noncharacters in extended plane with loose_unicode enabled, now replaced by single u+fffd, not two

This commit is contained in:
alisdair sullivan 2011-07-28 21:21:08 -07:00
parent 16c29a0070
commit b73ca00892
2 changed files with 2 additions and 2 deletions

View file

@ -709,7 +709,7 @@ low_surrogate(<<D/?utfx, Rest/binary>>, Stack, Opts, String, [C, B, A], High)
string(Rest,
Stack,
Opts,
<<String/binary, 16#fffd/utf8, 16#fffd/utf8>>
<<String/binary, 16#fffd/utf8>>
)
; false ->
{error, {badjson, <<D/?utfx, Rest/binary>>}}