rabbit_ct_broker_helpers: Ensure the generated config file is Unicode
This is in case it contains Unicode paths.
This commit is contained in:
parent
e00e96370d
commit
a96bc7424c
|
|
@ -542,7 +542,8 @@ write_config_file(Config, NodeConfig, _I) ->
|
|||
ConfigDir = filename:dirname(ConfigFile),
|
||||
Ret1 = file:make_dir(ConfigDir),
|
||||
Ret2 = file:write_file(ConfigFile ++ ".config",
|
||||
io_lib:format("% vim:ft=erlang:~n~n~p.~n", [ErlangConfig])),
|
||||
rabbit_ct_helpers:convert_to_unicode_binary(
|
||||
io_lib:format("% vim:ft=erlang:~n~n~p.~n", [ErlangConfig]))),
|
||||
case {Ret1, Ret2} of
|
||||
{ok, ok} ->
|
||||
NodeConfig;
|
||||
|
|
|
|||
Loading…
Reference in New Issue