changed unicode:characters_to_list back to binary_to_list #15

Merged
merged 2 commits into from Jun 30, 2011
@@ -308,7 +308,7 @@ parse(CheckSum, Data, Context) ->
end.
parse(Data) ->
- case erlydtl_scanner:scan(unicode:characters_to_list(Data)) of
+ case erlydtl_scanner:scan(binary_to_list(Data)) of
{ok, Tokens} ->
erlydtl_parser:parse(Tokens);
Err ->
@@ -958,6 +958,10 @@ tests() ->
<<"{% with a=b %}{{ a }}{% endwith %}">>, [{b, "foo"}], <<"foo">>},
{"Cache multiple",
<<"{% with alpha=1 beta=b %}{{ alpha }}/{{ beta }}{% endwith %}">>, [{b, 2}], <<"1/2">>}
+ ]},
+ {"unicode", [
+ {"(tm) somewhere",
+ <<"">>, [], <<"">>}
]}
].