@@ -402,7 +402,7 @@ defmodule Mix.Release do
402402 args = [ runtime_config? , sys_config ]
403403 format = "%% coding: utf-8~n%% RUNTIME_CONFIG=~s~n~tw.~n"
404404 File . mkdir_p! ( Path . dirname ( path ) )
405- File . write! ( path , :io_lib . format ( format , args ) , [ :utf8 ] )
405+ File . write! ( path , IO . chardata_to_string ( :io_lib . format ( format , args ) ) )
406406
407407 case :file . consult ( path ) do
408408 { :ok , _ } ->
@@ -512,7 +512,7 @@ defmodule Mix.Release do
512512 :ok | { :error , String . t ( ) }
513513 def make_boot_script ( release , path , modes , prepend_paths \\ [ ] ) do
514514 with { :ok , rel_spec } <- build_release_spec ( release , modes ) do
515- File . write! ( path <> ".rel" , consultable ( rel_spec ) , [ :utf8 ] )
515+ File . write! ( path <> ".rel" , consultable ( rel_spec ) )
516516
517517 sys_path = String . to_charlist ( path )
518518
@@ -535,7 +535,7 @@ defmodule Mix.Release do
535535 |> prepend_paths_to_script ( prepend_paths )
536536
537537 script = { :script , rel_info , instructions }
538- File . write! ( script_path , consultable ( script ) , [ :utf8 ] )
538+ File . write! ( script_path , consultable ( script ) )
539539 :ok = :systools . script2boot ( sys_path )
540540
541541 { :error , module , info } ->
@@ -657,7 +657,7 @@ defmodule Mix.Release do
657657 end
658658
659659 defp consultable ( term ) do
660- :io_lib . format ( "%% coding: utf-8~n~tp.~n" , [ term ] )
660+ IO . chardata_to_string ( :io_lib . format ( "%% coding: utf-8~n~tp.~n" , [ term ] ) )
661661 end
662662
663663 @ doc """
0 commit comments