<div dir="ltr"><div class="gmail_extra">The same problem with lager.erl: </div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"> {"don't choke on latin-1",</div>
<div class="gmail_extra"> fun() -></div><div class="gmail_extra"> %% XXX if this test fails, check that this file is encoded latin-1, not utf-8!</div><div class="gmail_extra"> gen_event:add_handler(lager_event, lager_file_backend, [{"test.log", info}, {lager_default_formatter}]),</div>
<div class="gmail_extra"> lager:log(error, self(),"~ts", ["LÆÝÎN-ï"]),</div><div class="gmail_extra"> {ok, Bin} = file:read_file("test.log"),</div>
<div class="gmail_extra"> Pid = pid_to_list(self()),</div><div class="gmail_extra"> Res = re:split(Bin, " ", [{return, list}, {parts, 5}]),</div><div class="gmail_extra">
?assertMatch([_, _, "[error]", Pid, [76,195,134,195,157,195,142,78,45,195,175,$\n]], Res)</div><div class="gmail_extra"> end</div><div class="gmail_extra"> },</div>
<div><br></div><div>Line </div><div><br></div><div> lager:log(error, self(),"~ts", ["LÆÝÎN-ï"]),<br></div><div><br></div><div>cannot even compile</div><div><br></div></div></div>