aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-02-04 18:59:23 +0100
committerSiri Hansen <[email protected]>2013-05-14 17:01:54 +0200
commit16181c6f7a6d3664f16e6ada818b710e43828db3 (patch)
tree192e50da3bbd8fd71a0e51c782dbff9fc8c8000b
parent44b76ccb2f2640e27214f3286acb5d798920babc (diff)
downloadotp-16181c6f7a6d3664f16e6ada818b710e43828db3.tar.gz
otp-16181c6f7a6d3664f16e6ada818b710e43828db3.tar.bz2
otp-16181c6f7a6d3664f16e6ada818b710e43828db3.zip
[reltool] Write erl.ini as UTF-8
Since file names on windows are unicode, and erl.ini contains paths to 'Bindir' and 'Rootdir', this file is now encoded in UTF-8.
-rw-r--r--lib/reltool/src/reltool_target.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/reltool/src/reltool_target.erl b/lib/reltool/src/reltool_target.erl
index 9cda5dabd3..b59108d8dd 100644
--- a/lib/reltool/src/reltool_target.erl
+++ b/lib/reltool/src/reltool_target.erl
@@ -1455,10 +1455,11 @@ do_install(RelName, TargetDir) ->
{win32, _} ->
NativeRootDir = nativename(TargetDir2),
NativeErtsBinDir = nativename(ErtsBinDir),
- IniData = ["[erlang]\r\n",
- "Bindir=", NativeErtsBinDir, "\r\n",
- "Progname=erl\r\n",
- "Rootdir=", NativeRootDir, "\r\n"],
+ IniData0 = ["[erlang]\r\n",
+ "Bindir=", NativeErtsBinDir, "\r\n",
+ "Progname=erl\r\n",
+ "Rootdir=", NativeRootDir, "\r\n"],
+ IniData = unicode:characters_to_binary(IniData0),
IniFile = filename:join([BinDir, "erl.ini"]),
ok = file:write_file(IniFile, IniData);
_ ->