Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #15 from cstar/master

changed unicode:characters_to_list back to binary_to_list
  • Loading branch information...
commit d3a953fbde8a04b14d9128a0937c5a15095d3562 2 parents 56b50af + 1c70d19
Evan Miller authored June 29, 2011
2  src/erlydtl_compiler.erl
@@ -308,7 +308,7 @@ parse(CheckSum, Data, Context) ->
308 308
     end.
309 309
 
310 310
 parse(Data) ->
311  
-    case erlydtl_scanner:scan(unicode:characters_to_list(Data)) of
  311
+    case erlydtl_scanner:scan(binary_to_list(Data)) of
312 312
         {ok, Tokens} ->
313 313
             erlydtl_parser:parse(Tokens);
314 314
         Err ->
4  tests/src/erlydtl_unittests.erl
@@ -958,6 +958,10 @@ tests() ->
958 958
                 <<"{% with a=b %}{{ a }}{% endwith %}">>, [{b, "foo"}], <<"foo">>},
959 959
             {"Cache multiple",
960 960
                 <<"{% with alpha=1 beta=b %}{{ alpha }}/{{ beta }}{% endwith %}">>, [{b, 2}], <<"1/2">>}
  961
+        ]},
  962
+     {"unicode", [
  963
+             {"(tm) somewhere",
  964
+                 <<"™">>, [], <<"™">>}
961 965
         ]}
962 966
     ].
963 967
  

0 notes on commit d3a953f

Please sign in to comment.
Something went wrong with that request. Please try again.