[erlang-questions] [ANN] Erlang/OTP 17.0-rc1 has been released.

Max Lapshin <>
Sat Feb 1 12:11:01 CET 2014


The same problem with lager.erl:

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

Line

                      lager:log(error, self(),"~ts", ["LÆÝÎN-ï"]),

cannot even compile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140201/7e45a4f2/attachment.html>


More information about the erlang-questions mailing list