Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix compile on Release 17 the right way. #209

Merged
merged 1 commit into from

2 participants

Jesper Louis Andersen Andrew Thompson
Jesper Louis Andersen

Change a latin1 sequence so it is given as a list of integers. this avoids the problem entirely
since ASCII has the same representation in both latin1 and in utf-8

Jesper Louis Andersen jlouis Fix compile on Release 17 the right way.
Change a latin1 sequence so it is given as a list of integers. this avoids the problem entirely
since ASCII has the same representation in both latin1 and in utf-8
1987ca3
Jesper Louis Andersen

tests passed, but not eqc ones, which i didnt run

Andrew Thompson Vagabond merged commit 73f0806 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 27, 2014
  1. Jesper Louis Andersen

    Fix compile on Release 17 the right way.

    jlouis authored
    Change a latin1 sequence so it is given as a list of integers. this avoids the problem entirely
    since ASCII has the same representation in both latin1 and in utf-8
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/lager_file_backend.erl
3  src/lager_file_backend.erl
View
@@ -1,4 +1,3 @@
-%% -*- coding: latin-1 -*-
%% Copyright (c) 2011-2012 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
@@ -502,7 +501,7 @@ filesystem_test_() ->
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-ï"]),
+ lager:log(error, self(),"~ts", [[76, 198, 221, 206, 78, $-, 239]]),
{ok, Bin} = file:read_file("test.log"),
Pid = pid_to_list(self()),
Res = re:split(Bin, " ", [{return, list}, {parts, 5}]),
Something went wrong with that request. Please try again.