From b8fa7ec8c0f737b678d6bc89a5dfca0aafc74956 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Tue, 25 Apr 2017 09:32:16 +0200 Subject: 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. --- lib/stdlib/src/shell.erl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/stdlib/src/shell.erl') 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. -- cgit v1.2.3