summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-08-29 13:12:22 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-08-29 13:12:22 -0500
commit5746965760b40bbf8739a9777fcd05c7f88b3f59 (patch)
tree7bbb20ddbd53b579261ed3bfb85eca0b57c7ad2f
parentbfd40d502b429100bab7980c7a0557b6d573e4ce (diff)
parent01252ecce4b8019c7d281b672711eee882137dc2 (diff)
Merge pull request #757 from ferd/use-raw-encoding
Use raw bytestream when writing files
-rw-r--r--src/rebar_file_utils.erl4
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