diff options
author | Siri Hansen <[email protected]> | 2013-05-14 17:58:09 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2013-05-14 17:58:09 +0200 |
commit | f5592219f5fb7f69b94b8c60e0cdf4a503a5899b (patch) | |
tree | 58835013f9fea0fa1f22a60e4c1a6e76a8dfb418 /lib/reltool | |
parent | 91fc4f1f66332e9cc295c737a2f668153a025cc4 (diff) | |
download | otp-f5592219f5fb7f69b94b8c60e0cdf4a503a5899b.tar.gz otp-f5592219f5fb7f69b94b8c60e0cdf4a503a5899b.tar.bz2 otp-f5592219f5fb7f69b94b8c60e0cdf4a503a5899b.zip |
[reltool] Use unicode characters in work dir for unicode test
Diffstat (limited to 'lib/reltool')
-rw-r--r-- | lib/reltool/test/reltool_server_SUITE.erl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/reltool/test/reltool_server_SUITE.erl b/lib/reltool/test/reltool_server_SUITE.erl index 61d8ced7fc..feeac9e099 100644 --- a/lib/reltool/test/reltool_server_SUITE.erl +++ b/lib/reltool/test/reltool_server_SUITE.erl @@ -807,13 +807,14 @@ create_target_unicode(Config) -> %% If file name translation mode is unicode, then use unicode %% characters release name (which will be used as file name for - %% .rel, .script and .boot) - RelNamePrefix = + %% .rel, .script and .boot), and install the release under a path + %% which icludes unicode characters. + {RelNamePrefix,TargetDirName} = case file:native_name_encoding() of utf8 -> - "Unicode test αβ"; + {"Unicode test αβ","target_unicode_αβ"} ; latin1 -> - "Unicode test" + {"Unicode test","target_unicode"} end, %% Configure the server @@ -837,7 +838,7 @@ create_target_unicode(Config) -> ]}, %% Generate target file - TargetDir = filename:join([?WORK_DIR, "target_unicode"]), + TargetDir = filename:join([?WORK_DIR, TargetDirName]), ?m(ok, reltool_utils:recursive_delete(TargetDir)), ?m(ok, file:make_dir(TargetDir)), ?log("SPEC: ~p\n", [reltool:get_target_spec([{config, Sys}])]), |