Permalink
Browse files

Merge pull request #15 from cstar/master

changed unicode:characters_to_list back to binary_to_list
  • Loading branch information...
2 parents 56b50af + 1c70d19 commit d3a953fbde8a04b14d9128a0937c5a15095d3562 @evanmiller evanmiller committed Jun 30, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −1 src/erlydtl_compiler.erl
  2. +4 −0 tests/src/erlydtl_unittests.erl
View
2 src/erlydtl_compiler.erl
@@ -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 ->
View
4 tests/src/erlydtl_unittests.erl
@@ -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",
+ <<"">>, [], <<"">>}
]}
].

0 comments on commit d3a953f

Please sign in to comment.