summaryrefslogtreecommitdiff
path: root/src/rebar_prv_unlock.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-08-07 19:39:44 -0400
committerGitHub <noreply@github.com>2017-08-07 19:39:44 -0400
commitc4b34e1abcab8fa8f328a997182bfe5f8ffe1242 (patch)
treed9a4289ccf8f9dabb75b6c590a5686f0b4ebe4d7 /src/rebar_prv_unlock.erl
parent00e7ee4cb16da76928dd25a89370feeb2311a001 (diff)
parent963c49f5eb9ab5b34e1843fb43305743720917ac (diff)
Merge pull request #1598 from ferd/unicode-bonanza
Unicode support in all the places
Diffstat (limited to 'src/rebar_prv_unlock.erl')
-rw-r--r--src/rebar_prv_unlock.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_unlock.erl b/src/rebar_prv_unlock.erl
index 7ff0d89..51c57ab 100644
--- a/src/rebar_prv_unlock.erl
+++ b/src/rebar_prv_unlock.erl
@@ -66,7 +66,7 @@ format_error(Reason) ->
handle_unlocks(State, Locks, LockFile) ->
{Args, _} = rebar_state:command_parsed_args(State),
- Names = parse_names(ec_cnv:to_binary(proplists:get_value(package, Args, <<"">>))),
+ Names = parse_names(rebar_utils:to_binary(proplists:get_value(package, Args, <<"">>))),
case [Lock || Lock = {Name, _, _} <- Locks, not lists:member(Name, Names)] of
[] ->
file:delete(LockFile);
@@ -77,7 +77,7 @@ handle_unlocks(State, Locks, LockFile) ->
end.
parse_names(Bin) ->
- case lists:usort(re:split(Bin, <<" *, *">>, [trim])) of
+ case lists:usort(re:split(Bin, <<" *, *">>, [trim, unicode])) of
[<<"">>] -> []; % nothing submitted
Other -> Other
end.