diff options
author | Hans Bolinder <[email protected]> | 2017-04-25 09:32:16 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-04-25 09:32:16 +0200 |
commit | b8fa7ec8c0f737b678d6bc89a5dfca0aafc74956 (patch) | |
tree | 08d8ae7fac3a4f9aa9dce8dbbc41f750c665ca75 /lib/stdlib/src/shell.erl | |
parent | 5a36e050b0b0615d0af841fecd4a7fabe7e40716 (diff) | |
download | otp-b8fa7ec8c0f737b678d6bc89a5dfca0aafc74956.tar.gz otp-b8fa7ec8c0f737b678d6bc89a5dfca0aafc74956.tar.bz2 otp-b8fa7ec8c0f737b678d6bc89a5dfca0aafc74956.zip |
stdlib: Remove the shell's support for Unicode node names
The Erlang shell's temporary support for Unicode node names is
removed. There will be no support for Unicode node names in
Erlang/OTP 20.0.
Diffstat (limited to 'lib/stdlib/src/shell.erl')
-rw-r--r-- | lib/stdlib/src/shell.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/stdlib/src/shell.erl b/lib/stdlib/src/shell.erl index 394f4f2fa4..961f5f8a30 100644 --- a/lib/stdlib/src/shell.erl +++ b/lib/stdlib/src/shell.erl @@ -349,16 +349,10 @@ default_prompt(N) -> %% Don't bother flattening the list irrespective of what the %% I/O-protocol states. case is_alive() of - true -> io_lib:format(<<"(~ts)~w> ">>, [node_string(), N]); + true -> io_lib:format(<<"(~s)~w> ">>, [node(), N]); false -> io_lib:format(<<"~w> ">>, [N]) end. -node_string() -> - case encoding() of - latin1 -> io_lib:write_atom_as_latin1(node()); - _ -> io_lib:write_atom(node()) - end. - %% expand_hist(Expressions, CommandNumber) %% Preprocess the expression list replacing all history list commands %% with their expansions. |