update comments to make control code handling slightly more clear

This commit is contained in:
alisdair sullivan 2013-02-25 17:37:49 -08:00
parent 01a2f06a91
commit 7f94b452fa

View file

@ -515,7 +515,7 @@ string(<<237, X, _, Rest/binary>>, Handler, Acc, Stack, #config{replaced_bad_utf
string(<<239, 191, X, Rest/binary>>, Handler, Acc, Stack, #config{replaced_bad_utf8=true} = Config)
when X == 190; X == 191 ->
string(Rest, Handler, ?acc_seq(Acc, 16#fffd), Stack, Config);
%% u+xfffe, u+xffff and other noncharacters
%% u+xfffe, u+xffff, control codes and other noncharacters
string(<<_/utf8, Rest/binary>>, Handler, Acc, Stack, #config{replaced_bad_utf8=true} = Config) ->
string(Rest, Handler, ?acc_seq(Acc, 16#fffd), Stack, Config);
%% overlong encodings and missing continuations of a 2 byte sequence