diff options
author | Siri Hansen <[email protected]> | 2017-07-07 14:16:14 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-07-07 14:16:14 +0200 |
commit | c0afc2ec4a46f2014dfd5a3ee571f49217febb1a (patch) | |
tree | e442f228aa24aace249243a6e623605475a573b2 /lib/sasl/src/release_handler.erl | |
parent | 99e9ad0dde25789e9603cd798c07a0c3d4e65123 (diff) | |
parent | cc4de75dcb833610e52c7422b743c43556064a0a (diff) | |
download | otp-c0afc2ec4a46f2014dfd5a3ee571f49217febb1a.tar.gz otp-c0afc2ec4a46f2014dfd5a3ee571f49217febb1a.tar.bz2 otp-c0afc2ec4a46f2014dfd5a3ee571f49217febb1a.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/sasl/src/release_handler.erl')
-rw-r--r-- | lib/sasl/src/release_handler.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sasl/src/release_handler.erl b/lib/sasl/src/release_handler.erl index 1f3c6877d5..d0a7c7332d 100644 --- a/lib/sasl/src/release_handler.erl +++ b/lib/sasl/src/release_handler.erl @@ -1143,8 +1143,9 @@ new_emulator_make_hybrid_config(CurrentVsn,ToVsn,TmpVsn,RelDir,Masters) -> Config2 = replace_config(stdlib,Config1,Stdlib), Config3 = replace_config(sasl,Config2,Sasl), - ConfigStr = io_lib:format("~p.~n",[Config3]), - write_file(TmpFile,ConfigStr,Masters). + ConfigStr = io_lib:format("%% ~s~n~tp.~n", + [epp:encoding_to_string(utf8),Config3]), + write_file(TmpFile,unicode:characters_to_binary(ConfigStr),Masters). %% Take the configuration for application App from the new config and %% insert in the old config. @@ -1874,9 +1875,10 @@ write_releases_1(Dir, NewReleases, Masters) -> write_releases_m(Dir, NewReleases, Masters). do_write_release(Dir, RELEASES, NewReleases) -> - case file:open(filename:join(Dir, RELEASES), [write]) of + case file:open(filename:join(Dir, RELEASES), [write,{encoding,utf8}]) of {ok, Fd} -> - ok = io:format(Fd, "~p.~n", [NewReleases]), + ok = io:format(Fd, "%% ~s~n~tp.~n", + [epp:encoding_to_string(utf8),NewReleases]), ok = file:close(Fd); {error, Reason} -> {error, Reason} |