changed unicode:characters_to_list back to binary_to_list #15

Merged
merged 2 commits into from Jun 30, 2011

Conversation

Projects
None yet
2 participants
Contributor

cstar commented Jun 29, 2011

Hi Evan,

694fc92 would break my templates (with a ™ in them) with
[{erlang,iolist_to_binary,[...SNIP...]
{webmachine_decision_core,encode_body,1},
{webmachine_decision_core,decision,1},
{webmachine_decision_core,handle_request,2},
{webmachine_mochiweb,loop,1},
{mochiweb_http,headers,5},
{proc_lib,init_p_do_apply,3}]

I've tracked down the problem to unicode:characters_to_list. Put it back to binary_to_list, and it worked again.
Also added is an additional test, just to actually make sure I'm fixing something.

This fix is certainly not the best one, but it does fix my problem.

Cheers,

Contributor

evanmiller commented Jun 30, 2011

Thanks. One day it would be nice to do string encodings right, but for now I'll revert to the old behavior.

evanmiller merged commit d3a953f into erlydtl:master Jun 30, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment