diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-29 13:12:22 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-29 13:12:22 -0500 |
commit | 5746965760b40bbf8739a9777fcd05c7f88b3f59 (patch) | |
tree | 7bbb20ddbd53b579261ed3bfb85eca0b57c7ad2f | |
parent | bfd40d502b429100bab7980c7a0557b6d573e4ce (diff) | |
parent | 01252ecce4b8019c7d281b672711eee882137dc2 (diff) |
Merge pull request #757 from ferd/use-raw-encoding
Use raw bytestream when writing files
-rw-r--r-- | src/rebar_file_utils.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl index 2f39b96..732d83f 100644 --- a/src/rebar_file_utils.erl +++ b/src/rebar_file_utils.erl @@ -201,9 +201,9 @@ write_file_if_contents_differ(Filename, Bytes) -> {ok, ToWrite} -> ok; {ok, _} -> - file:write_file(Filename, ToWrite); + file:write_file(Filename, ToWrite, [raw]); {error, _} -> - file:write_file(Filename, ToWrite) + file:write_file(Filename, ToWrite, [raw]) end. %% returns an os appropriate tmpdir given a path |